diff --git a/bot.rb b/bot.rb index 4bc350f..d2a8c43 100644 --- a/bot.rb +++ b/bot.rb @@ -9,9 +9,6 @@ class Bot end def move board - - return "\nGame is done!" if board.is_full? - return "\nSomeone won!" if board.any_winner? minmax board, @piece board.set @piece, @best_choice end @@ -53,8 +50,7 @@ class Bot end def score board - #p @piece - #p @opponent + if board.is_winner? @piece return 10 elsif board.is_winner? @opponent