Class: Shogi::Piece::FU

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

Constant Summary collapse

CSA_NAME =
"FU"
USI_NAME =
"P"
MOVEMENTS =
[[0, 1]]
PROMOTER =
TO

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeFU

Returns a new instance of FU.



12
13
14
# File 'lib/shogi/piece.rb', line 12

def initialize
  super(CSA_NAME, USI_NAME, MOVEMENTS, PROMOTER)
end