Module: Color

Included in:
Board, Game, Grid
Defined in:
lib/capim_tictactoe/color.rb

Instance Method Summary collapse

Instance Method Details

#lineObject



10
11
12
# File 'lib/capim_tictactoe/color.rb', line 10

def line
  Rainbow("\n---+---+---\n").red.to_s
end

#o_markerObject



18
19
20
# File 'lib/capim_tictactoe/color.rb', line 18

def o_marker
  Rainbow('O').blue
end

#pipeObject



6
7
8
# File 'lib/capim_tictactoe/color.rb', line 6

def pipe
  Rainbow(' | ').red.to_s
end

#x_markerObject



14
15
16
# File 'lib/capim_tictactoe/color.rb', line 14

def x_marker
  Rainbow('X').green
end