From 256a9af3ed1776d2b5de1722c47d9f8536f3854b Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 16 Apr 2022 01:23:29 +0200 Subject: [PATCH] Bug fixy --- ultimatetictactoe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ultimatetictactoe.py b/ultimatetictactoe.py index 9427155..c20962d 100644 --- a/ultimatetictactoe.py +++ b/ultimatetictactoe.py @@ -191,12 +191,13 @@ def humanVsAi(train=True, remember=True): run = NeuralRuntime(init) run.game([0,1], 4) + if remember or train: + trainer = Trainer(init) if remember: trainer.saveToMemoryBank(run.head) print('[!] Your cognitive and strategic destinctiveness was added to my own! (Game inserted into memoryBank)') if train: print("[!] Your knowledge will be assimilated!!! Please stand by.... (Updating Neuristic)") - trainer = Trainer(init) trainer.trainFromTerm(run.head) print('[!] I have become smart! Destroyer of human Ultimate-TicTacToe players! (Neuristic update completed)') print('[!] This marks the beginning of the end of humankind!')