lib/ttt.rb
def check_winners
    winner_x = @winners.count('X')
    winner_o = @winners.count('O')
    puts "X has won #{winner_x} times"
    puts "O has won #{winner_o} times"
  end
#Shows how many times a player has won
Shows how many times a player has won
Shows how many times a player has won
def check_winners
    winner_x = @winners.count('X')
    winner_o = @winners.count('O')
    puts "X has won #{winner_x} times"
    puts "O has won #{winner_o} times"
  end
def check_winners winner_x = @winners . count ( 'X' ) winner_o = @winners . count ( 'O' ) puts "X has won #{winner_x} times" puts "O has won #{winner_o} times" end
Shows how many times a player has won
Shows how many times a player has won