bin/main.rb
# define a method to count the number of turns that've been taken, this is a helper method for the
# *player* method that'll evaluate which token's turn is to be played when the *game* method is running
define a method to count the number of turns that've been taken, this is a helper method for the
player* method that'll evaluate which token's turn is to be played when the *game* method is running
define a method to count the number of turns that ' ve been taken this is a helper method for the player * method that ' ll evaluate which token ' s turn is to be played when the * game * method is running
def turn_counter
    counter = 0
    @board.each do |token|
      counter += 1 if %w[X O].include? token
    end
    counter
  end
def turn_counter counter = 0 @board . each do | token | counter += 1 if %w[ X O ] . include? token end counter end
define a method to count the number of turns that've been taken, this is a helper method for the
player* method that'll evaluate which token's turn is to be played when the *game* method is running
define a method to count the number of turns that ' ve been taken this is a helper method for the player * method that ' ll evaluate which token ' s turn is to be played when the * game * method is running