Class: Shogi::Piece::GI

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

Constant Summary collapse

CSA_NAME =
"GI"
USI_NAME =
"S"
MOVEMENTS =
[[-1,  1],
[ 0,  1],
[ 1,  1],
[-1, -1],
[ 1, -1]]
PROMOTER =
NG

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeGI

Returns a new instance of GI.



50
51
52
# File 'lib/shogi/piece.rb', line 50

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