Class: Messages

Inherits:
Object
  • Object
show all
Defined in:
lib/terminal_chess/messages.rb

Class Attribute Summary collapse

Class Attribute Details

.black_in_checkObject (readonly)

Returns the value of attribute black_in_check.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def black_in_check
  @black_in_check
end

.black_turnObject (readonly)

Returns the value of attribute black_turn.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def black_turn
  @black_turn
end

.black_winnerObject (readonly)

Returns the value of attribute black_winner.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def black_winner
  @black_winner
end

.checkmateObject (readonly)

Returns the value of attribute checkmate.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def checkmate
  @checkmate
end

.invalidObject (readonly)

Returns the value of attribute invalid.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def invalid
  @invalid
end

.piece_movedObject (readonly)

Returns the value of attribute piece_moved.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def piece_moved
  @piece_moved
end

.red_in_checkObject (readonly)

Returns the value of attribute red_in_check.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def red_in_check
  @red_in_check
end

.red_turnObject (readonly)

Returns the value of attribute red_turn.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def red_turn
  @red_turn
end

.red_winnerObject (readonly)

Returns the value of attribute red_winner.



15
16
17
# File 'lib/terminal_chess/messages.rb', line 15

def red_winner
  @red_winner
end