First commit
This commit is contained in:
commit
0d2340b7e8
4 changed files with 344 additions and 0 deletions
11
play.py
Normal file
11
play.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from nim import train
|
||||
from game import start_game
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Train the AI with 1000 games
|
||||
print("START TRAINING \n")
|
||||
ai = train(1000)
|
||||
|
||||
# Start the game and play against the trained AI
|
||||
print("STARTING THE GAME \n")
|
||||
start_game(ai)
|
||||
Loading…
Add table
Add a link
Reference in a new issue