engine
/
endconditions.hex
/
Checkmate
Checkmate
class
Checkmate
:
EndConditionHex
<
AbstractChessHex
>
Content copied to clipboard
Condition for checkmate. If the player on turn has no legal move but is not in check
Constructors
Functions
Constructors
Checkmate
Link copied to clipboard
fun
Checkmate
()
Content copied to clipboard
Functions
equals
Link copied to clipboard
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
evaluate
Link copied to clipboard
open override fun
evaluate
(game:
AbstractChessHex
, player:
Player
, moves:
List
<
MoveHex
>):
Outcome
?
Content copied to clipboard
Evaluate the condition and return an outcome if the game should end.
hashCode
Link copied to clipboard
open fun
hashCode
():
Int
Content copied to clipboard
toString
Link copied to clipboard
open fun
toString
():
String
Content copied to clipboard