Class: TakaTicTacToe::EasyAi

Inherits:
Computer show all
Defined in:
lib/taka_tic_tac_toe/ai_difficulty/easy_ai.rb

Instance Attribute Summary

Attributes inherited from Computer

#difficulty, #mark, #opponent_mark

Instance Method Summary collapse

Methods inherited from Computer

#initialize

Constructor Details

This class inherits a constructor from TakaTicTacToe::Computer

Instance Method Details

#make_move(board) ⇒ Object



4
5
6
# File 'lib/taka_tic_tac_toe/ai_difficulty/easy_ai.rb', line 4

def make_move(board)
  board.empty_slots.first
end