Class: ConsoleShogi::PieceMoverFromKomadai
- Inherits:
-
PieceMover
- Object
- PieceMover
- ConsoleShogi::PieceMoverFromKomadai
- Defined in:
- lib/console_shogi/piece_mover_from_komadai.rb
Instance Method Summary collapse
-
#initialize(board:, player:, from:, to:) ⇒ PieceMoverFromKomadai
constructor
A new instance of PieceMoverFromKomadai.
Methods inherited from PieceMover
Constructor Details
#initialize(board:, player:, from:, to:) ⇒ PieceMoverFromKomadai
5 6 7 8 9 10 11 12 |
# File 'lib/console_shogi/piece_mover_from_komadai.rb', line 5 def initialize(board:, player:, from:, to:) @board = board @komadai = player.komadai @player = player @from = from @to = to @moved_piece = false end |