Class: Shogi::Piece::OU

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

Constant Summary collapse

CSA_NAME =
"OU"
USI_NAME =
"K"
MOVEMENTS =
[[-1,  1],
[ 0,  1],
[ 1,  1],
[-1,  0],
[ 1,  0],
[-1, -1],
[ 0, -1],
[ 1, -1]]

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeOU

Returns a new instance of OU.



110
111
112
# File 'lib/shogi/piece.rb', line 110

def initialize
  super(CSA_NAME, USI_NAME, MOVEMENTS)
end