Skip to content

Commit 47c619f

Browse files
authored
Update README.md
1 parent 5e92d1d commit 47c619f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
#mini2048
1+
#Gym 2048 Environment
22
========
3-
A Python implementation of 2048 with a minimum GUI in 99 Physical LOC
3+
Thanks to the author of gym-2048 https://github.com/rgal/gym-2048. The code is easy to understand and running efficiently. I just made some little changes for a better agent training environment.
44

5-
Not Pythonic, PEP8 is not followed. I wrote this code because I'm boring.
65

7-
Two modules are included:
6+
## Performance of environment
7+
I used random policy to evaluate the performance for 100 times. We can use random policy as a baseline.
8+
9+
average episode time:0.15266018629074096 s;
10+
average step time: 1.185 ms;
11+
average highest score:96.0,;
12+
average total score:982.0,;
13+
average steps:128.87;
814

9-
1) Game control module. Based on numpy, use a 2d ndarray to store the tile values. It takes input of UP, DOWN, LEFT and RIGHT to step forward.
1015

11-
2) A minimum GUI based on Tk. The color style is referred to <a href="https://github.com/gabrielecirulli/2048">gabrielecirulli/2048</a></p>.
1216

1317
#Screenshot:
1418
![](https://github.com/frombeijingwithlove/mini2048/blob/master/Screenshot.png)
1519

16-
If you can read Chinese you may find more details here:
17-
http://www.cnblogs.com/frombeijingwithlove/p/4111016.html
20+

0 commit comments

Comments
 (0)