bin/main.rb
# Ask for a move from the player
Ask for a move from the player
Ask for a move from the player
def make_move_one
    puts "\n#{@player1}, make your move. [beween 1 and 9]"
    @move1 = gets.chomp.to_i
    return puts "you made your move #{@move1}. \nX will be place in position #{@move1}. " if move_valid?(@move1)
    puts display_warning
    make_move_one
  end
def make_move_one puts "\n#{@player1}, make your move. [beween 1 and 9]" @move1 = gets . chomp . to_i return puts "you made your move #{@move1}. \nX will be place in position #{@move1}. " if move_valid? ( @move1 ) puts display_warning make_move_one end
Ask for a move from the player
Ask for a move from the player