Class: RandomAI
Instance Attribute Summary
Attributes inherited from AI
Instance Method Summary collapse
Methods inherited from AI
Constructor Details
This class inherits a constructor from AI
Instance Method Details
#move_generate ⇒ Object
4 5 6 |
# File 'lib/ttt-cli/strategies/random_ai.rb', line 4 def move_generate @board.empty_cells.sample end |