From 91e567d2b33476e3c2e2691aa660c854f9924e69 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 15 Apr 2022 19:18:46 +0200 Subject: [PATCH] Save to memBank before train --- ultimatetictactoe.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ultimatetictactoe.py b/ultimatetictactoe.py index 47a9646..9427155 100644 --- a/ultimatetictactoe.py +++ b/ultimatetictactoe.py @@ -191,14 +191,14 @@ def humanVsAi(train=True, remember=True): run = NeuralRuntime(init) run.game([0,1], 4) - if train: - print("[!] Your knowledge will be assimilated!!! Please stand by....") - trainer = Trainer(init) - trainer.trainFromTerm(run.head) - print('[!] I have become smart! Destroyer of human Ultimate-TicTacToe players! (Neuristic update completed)') 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!') print('[i] Thanks for playing! Goodbye...')