Class: King
Instance Attribute Summary
Attributes inherited from Piece
Instance Method Summary collapse
-
#initialize(board, listener, color, square) ⇒ King
constructor
A new instance of King.
Methods inherited from Piece
#clear_to?, #could_perform_move, create, #move_off_board, #move_to, #to_s
Constructor Details
#initialize(board, listener, color, square) ⇒ King
Returns a new instance of King.
85 86 87 |
# File 'lib/bangkok/piece.rb', line 85 def initialize(board, listener, color, square) super(board, listener, color, :K, square) end |