Class: ConsoleShogi::Terminal::DisplayArea::History

Inherits:
ConsoleShogi::Terminal::DisplayArea show all
Defined in:
lib/console_shogi/terminal/display_area.rb

Direct Known Subclasses

Back, Forward, Resume

Defined Under Namespace

Classes: Back, Forward, Resume

Constant Summary collapse

START_POSITION =
Position.new(x: 1, y: 10)
END_POSITION =
Position.new(x: 6, y: 10)
NAME =
:history

Constants inherited from ConsoleShogi::Terminal::DisplayArea

BOARD, GOTE_KOMADAI, OTHERS, SENTE_KOMADAI

Class Method Summary collapse

Methods inherited from ConsoleShogi::Terminal::DisplayArea

board?, end_position, fetch_area, history?, in?, komadai?, name, outside?, start_position

Class Method Details

.back?Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/console_shogi/terminal/display_area.rb', line 80

def back?
  self == Back
end

.forward?Boolean

Returns:

  • (Boolean)


84
85
86
# File 'lib/console_shogi/terminal/display_area.rb', line 84

def forward?
  self == Forward
end

.resume?Boolean

Returns:

  • (Boolean)


88
89
90
# File 'lib/console_shogi/terminal/display_area.rb', line 88

def resume?
  self == Resume
end