Skip to content

Instantly share code, notes, and snippets.

@bramleyjl
bramleyjl / tic_tac_toe.rb
Created June 3, 2017 12:06
Tic Tac Toe Game
class GameActions
def initialize
@board = {1 => 1, 2 => 2, 3=> 3, 4=> 4, 5=> 5, 6=> 6, 7=> 7, 8=> 8, 9=> 9}
@player_switch = false
end
def display()
print @board[1], @board[2], @board[3], "\n"
print @board[4], @board[5], @board[6], "\n"