Class: Shogi::Piece::KI

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

Constant Summary collapse

CSA_NAME =
"KI"
USI_NAME =
"G"
MOVEMENTS =
[[-1,  1],
[ 0,  1],
[ 1,  1],
[-1,  0],
[ 1,  0],
[ 0, -1]]

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeKI

Returns a new instance of KI.



65
66
67
# File 'lib/shogi/piece.rb', line 65

def initialize
  super(CSA_NAME, USI_NAME, MOVEMENTS)
end