Class: Shogi::Piece::KE

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

Constant Summary collapse

CSA_NAME =
"KE"
USI_NAME =
"N"
MOVEMENTS =
[[-1, 2],
[ 1, 2]]
PROMOTER =
NK

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeKE

Returns a new instance of KE.



35
36
37
# File 'lib/shogi/piece.rb', line 35

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