Skip to content

Instantly share code, notes, and snippets.

@sasaco
Last active March 23, 2018 06:03
Show Gist options
  • Save sasaco/7786179d012d91e8b7f42e3d91ae1073 to your computer and use it in GitHub Desktop.
Save sasaco/7786179d012d91e8b7f42e3d91ae1073 to your computer and use it in GitHub Desktop.
機械学習の理論を理解せずに tensorflow で オセロ AI を作ってみた 〜いざ対戦編〜 ref: https://qiita.com/sasaco/items/f9aa608860eebb3026c1
$ 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
番号を入力してください
[44, 37, 26, 19]
>>>
*** AIターン● ***
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
16 17 18 ● 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
番号を入力してください
[44, 37, 26, 19]
>>> 18
player:1 | pos:32 | LOSS: 0.0014 | Q_MAX: 0.9423
player:2 | pos:15 | LOSS: 0.0020 | Q_MAX: 0.9335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment