From 390447397cd5c4c295081fc122b36ce34625ea34 Mon Sep 17 00:00:00 2001 From: ualvesdias Date: Fri, 22 Mar 2019 22:02:58 -0300 Subject: [PATCH] Update Machine.py --- Machine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machine.py b/Machine.py index 3d742e1..28f6846 100644 --- a/Machine.py +++ b/Machine.py @@ -1,4 +1,4 @@ -import random as rd +from random import choice class Machine(object): @@ -32,7 +32,7 @@ def loadNew(self): def chooseMove(self, boardState, currentRound): self.boardState = boardState self.currentRound = currentRound - self.move = rd.choice(self.table[self.currentRound][self.boardState]) + self.move = choice(self.table[self.currentRound][self.boardState]) return self.move def learn(self, win):