From 4a8d1c8d1ec816fd73abce989515a5dbb08b3641 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Thu, 25 Jan 2018 20:44:22 +0100 Subject: [PATCH] Short cleanup --- bot.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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