Squeak Class Documentation category index | class index  
 
ChessMove
  category: Morphic-Games-Chess
  superclass: Object
  subclasses:

I represent a particular move in the chess game.

instance methods
  accessing
  bestMove
capturedPiece
capturedPiece:
destinationSquare
destinationSquare:
encodedMove
moveType
moveType:
movingPiece
movingPiece:
promotion
sourceSquare
sourceSquare:
value
value:

  comparing
  =
hash

  initialize
  captureEnPassant:from:to:
checkMate:
doublePush:from:to:
init
move:from:to:
move:from:to:capture:
moveCastlingKingSide:from:to:
moveCastlingQueenSide:from:to:
moveEncoded:
promote:to:
staleMate:

  printing
  moveString
printOn:

class methods
  accessing
  basicMoveMask
decodeFrom:
initialize

instance methods
  accessing top  
 

bestMove


 

capturedPiece


 

capturedPiece:


 

destinationSquare


 

destinationSquare:


 

encodedMove

Return an integer encoding enough of a move for printing


 

moveType


 

moveType:


 

movingPiece


 

movingPiece:


 

promotion


 

sourceSquare


 

sourceSquare:


 

value


 

value:


  comparing top  
 

=

Answer whether the receiver and the argument represent the same
object. If = is redefined in any subclass, consider also redefining the
message hash.


 

hash

Answer a SmallInteger whose value is related to the receiver's identity.
May be overridden, and should be overridden in any classes that define =


  initialize top  
 

captureEnPassant:from:to:


 

checkMate:


 

doublePush:from:to:


 

init


 

move:from:to:


 

move:from:to:capture:


 

moveCastlingKingSide:from:to:


 

moveCastlingQueenSide:from:to:


 

moveEncoded:


 

promote:to:


 

staleMate:


  printing top  
 

moveString


 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


class methods
  accessing top  
 

basicMoveMask


 

decodeFrom:


 

initialize

ChessMove initialize