Last active
March 23, 2018 06:02
-
-
Save sasaco/b16782b094dc7c81759003b532c86daa to your computer and use it in GitHub Desktop.
機械学習の理論を理解せずに tensorflow で オセロ AI を作ってみた 〜導入編〜 ref: https://qiita.com/sasaco/items/3b0b8565d6aa2a640caf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd tf-dqn-reversi | |
$ python train.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
player:1 | pos:32 | LOSS: 0.0000 | Q_MAX: 0.0041 | |
player:2 | pos:15 | LOSS: 0.0000 | Q_MAX: 0.0009 | |
… | |
layer:2 is only pos:56 | |
player:2 | pos:56 | LOSS: 0.0000 | Q_MAX: 0.8607 | |
EPOCH: 999/999 | WIN: player2 | |
winner is player2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python FightWithAI.py | |
------------- GAME START --------------- | |
*** userターン○ *** | |
0 1 2 3 4 5 6 7 | |
8 9 10 11 12 13 14 15 | |
16 17 18 19 20 21 22 23 | |
24 25 26 ○ ● 29 30 31 | |
32 33 34 ● ○ 37 38 39 | |
40 41 42 43 44 45 46 47 | |
48 49 50 51 52 53 54 55 | |
56 57 58 59 60 61 62 63 | |
番号を入力してください | |
[43, 34, 29, 20] | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment