diff --git a/README.md b/README.md index 55cb9de..5267e2b 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,16 @@ Launch and play the game (human player) ### How to Run? * To play the game -`python3 2048.py` +> `python3 2048.py` * To see arguments -`python3 2048.py -h` +> `python3 2048.py -h` * To train your AI (the tuple network will be saved to the directory tupleNet/) -`python3 2048.py --play=n --train=on -e=5000 -m=500` +> `python3 2048.py --play=n --train=on -e=5000 -m=500` * To test your AI for one game round -`python3 2048.py --play=n --train=off` +> `python3 2048.py --play=n --train=off` diff --git a/agent.py b/agent.py index da123b4..c9c7577 100644 --- a/agent.py +++ b/agent.py @@ -120,16 +120,11 @@ def step(self, prev): B = Board() B.initialize() while True: - #print("\nAI's turn") act, r = AI.step(B) if B.end_game(): - #B.printBoard() break - #B.printBoard() - #print("\nEnv's turn") B.GenRandTile(r) if B.end_game(): - #B.printBoard() break #B.printBoard() if e % 100 == 0: diff --git a/analyze.py b/analyze.py index 66ca1fc..98b532b 100644 --- a/analyze.py +++ b/analyze.py @@ -43,9 +43,5 @@ def reset(self): '17': 0, '18': 0, '19': 0, - '20': 0, - '21': 0, - '22': 0, - '23': 0, - '24': 0 + '20': 0 } diff --git a/constants.py b/constants.py index fa566da..b2aeac7 100644 --- a/constants.py +++ b/constants.py @@ -32,11 +32,6 @@ KEY_DOWN = "'s'" KEY_LEFT = "'a'" KEY_RIGHT = "'d'" -#KEY_BACK = "'b'" KEY_AUTOPLAY = "'z'" KEY_HINT = "'h'" -#KEY_J = "'j'" -#KEY_K = "'k'" -#KEY_L = "'l'" -#KEY_H = "'h'" diff --git a/img/demo1.gif b/img/demo1.gif index 84eef4f..d392ab7 100644 Binary files a/img/demo1.gif and b/img/demo1.gif differ