Class: King

Inherits:
Piece show all
Defined in:
lib/bangkok/piece.rb

Instance Attribute Summary

Attributes inherited from Piece

#color, #piece, #square

Instance Method Summary collapse

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