Class: Shogi::Piece::TO

Inherits:
Base
  • Object
show all
Defined in:
lib/shogi/piece/promoter.rb

Constant Summary collapse

CSA_NAME =
"TO"
USI_NAME =
"+P"
MOVEMENTS =
MOVEMENTS_KI
CHILD =
"FU"

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeTO

Returns a new instance of TO.



18
19
20
# File 'lib/shogi/piece/promoter.rb', line 18

def initialize
  super(CSA_NAME, USI_NAME, MOVEMENTS)
end