Class: Shogi::Piece::KY

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

Constant Summary collapse

CSA_NAME =
"KY"
USI_NAME =
"L"
MOVEMENTS =
[(1..8).map {|height| [0, height] }].flatten(1)
PROMOTER =
NY

Instance Attribute Summary

Attributes inherited from Base

#csa, #promoter, #usi

Instance Method Summary collapse

Methods inherited from Base

#move?

Constructor Details

#initializeKY

Returns a new instance of KY.



23
24
25
# File 'lib/shogi/piece.rb', line 23

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