Name: Cheater
Author: David Stevenson
Code:
matrix = move_matrix turn_id = (rand * 2).to_i case turn_id when 0: log_info "I'm going to cheat by moving 3 times" make_move!(0,0) make_move!(0,1) make_move!(0,2) when 1: log_info "I'm going to cheat by deleting all the moves" moves.delete_all endEdit | Play against X | Play against O | Back