Module: Presenter
- Included in:
- Game
- Defined in:
- lib/capim_tictactoe/presenter.rb
Constant Summary collapse
- SILLY_LINE =
SillyLine::LINES.sample
- GREEN_GRASS =
AsciiArt::GREEN_GRASS
Instance Method Summary collapse
Instance Method Details
#present_game ⇒ Object
10 11 12 13 14 15 |
# File 'lib/capim_tictactoe/presenter.rb', line 10 def present_game print "#{GREEN_GRASS}\n" if @options[:ascii_art] puts "\n#{SILLY_LINE}\n\n" if @options[:jokes] @board.grid.display puts 'Enter [0-8]' end |