Class: RandomAi
Overview
require ‘ai’
Instance Method Summary collapse
Instance Method Details
#calculate_move(board, current_player) ⇒ Object
4 5 6 |
# File 'lib/random_ai.rb', line 4 def calculate_move(board, current_player) board.available_spaces.sample end |