Skip to content

Commit

Permalink
documents improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Nov 15, 2016
1 parent 45d52b4 commit 765d950
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 66 deletions.
2 changes: 2 additions & 0 deletions AI/DATA/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
+ For start from the trained QL_AI, run ``start.bat``
+ For start a fresh new QL_AI, directly run application ``./bin/SnakeAI.exe``
132 changes: 66 additions & 66 deletions AI/DATA/snake_QL_AI.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,82 +23,82 @@
{
"EnvirState": "10,\u000916",
"Qvalues": [
-491.210175,
-487.054962,
-488.750458,
-484.892578
-533.675232,
-547.8267,
-545.7649,
-548.4859
]
},
{
"EnvirState": "10,\u00092",
"Qvalues": [
-540.791138,
-545.7612,
-526.6121,
-545.0229
-543.179565,
-554.8127,
-555.410767,
-557.1583
]
},
{
"EnvirState": "10,\u00094",
"Qvalues": [
-501.335236,
-499.0331,
-488.8179,
-498.184937
-606.475464,
-588.006042,
-542.144,
-606.403259
]
},
{
"EnvirState": "10,\u00098",
"Qvalues": [
-548.5928,
-553.0365,
-539.3658,
-515.9101
-529.3986,
-522.865051
]
},
{
"EnvirState": "12,\u000916",
"Qvalues": [
-608.484863,
-611.0283,
-610.490234,
-610.0095
-685.076233,
-595.5607,
-685.4444,
-685.9813
]
},
{
"EnvirState": "12,\u00092",
"Qvalues": [
-575.5643,
-576.0245,
-544.0513,
-578.6411
-594.5599,
-593.918762,
-598.076,
-593.3822
]
},
{
"EnvirState": "12,\u00094",
"Qvalues": [
-432.9005,
-431.226227,
-431.738037,
-433.248627
-490.27243,
-487.605621,
-492.924561,
-493.934052
]
},
{
"EnvirState": "12,\u00098",
"Qvalues": [
-478.454926,
-471.772858,
-484.498566,
-476.373871
-516.8051,
-513.310669,
-514.6044,
-515.2325
]
},
{
"EnvirState": "16,\u00092",
"Qvalues": [
-21.3750019,
0,
0,
0
-21.3750019,
-21.3750019,
-22.3875
]
},
{
Expand All @@ -114,7 +114,7 @@
"EnvirState": "16,\u00098",
"Qvalues": [
-21.3750019,
0,
-21.3750019,
0,
0
]
Expand All @@ -124,44 +124,44 @@
"Qvalues": [
-21.3750019,
-21.3750019,
0,
-21.3750019,
0
]
},
{
"EnvirState": "18,\u000916",
"Qvalues": [
-475.131927,
-487.661377,
-480.984283,
-483.60495
-492.8903,
-495.528778,
-495.594849,
-489.3969
]
},
{
"EnvirState": "18,\u00092",
"Qvalues": [
-402.516327,
-402.8071,
-408.5064,
-410.9914
-474.9573,
-475.006531,
-480.029266,
-470.1948
]
},
{
"EnvirState": "18,\u00094",
"Qvalues": [
-575.660034,
-574.779053,
-572.7059,
-548.9591
-584.3375,
-582.8605,
-581.239,
-534.761963
]
},
{
"EnvirState": "18,\u00098",
"Qvalues": [
-521.049438,
-545.758362,
-551.173767,
-549.1212
-533.290466,
-538.8193,
-542.826843,
-542.6163
]
},
{
Expand All @@ -185,19 +185,19 @@
{
"EnvirState": "20,\u000916",
"Qvalues": [
-602.985,
-600.826233,
-594.317932,
-563.415344,
-584.752,
-532.430542
-513.3912
]
},
{
"EnvirState": "20,\u00092",
"Qvalues": [
-590.945,
-599.8305,
-591.2967,
-574.88916
-629.0689,
-628.8288,
-629.68634,
-594.5737
]
},
{
Expand All @@ -206,16 +206,16 @@
-588.3822,
-588.6982,
-588.960938,
-572.8352
-569.7294
]
},
{
"EnvirState": "20,\u00098",
"Qvalues": [
-613.1982,
-575.1567,
-617.875061,
-615.4603
-599.311462,
-567.5349,
-607.551758,
-618.5905
]
},
{
Expand Down Expand Up @@ -249,7 +249,7 @@
"EnvirState": "4,\u00098",
"Qvalues": [
-21.3750019,
0,
-21.3750019,
0,
0
]
Expand All @@ -258,7 +258,7 @@
"EnvirState": "8,\u000916",
"Qvalues": [
-21.3750019,
0,
-21.3750019,
0,
0
]
Expand All @@ -278,7 +278,7 @@
-36.81844,
-21.3750019,
-13.522501,
0
-22.3875
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions AI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NOTE: For correctly initialize the sound driver, you must change the solution CPU type configuration to ``x86``, the compile output directory have been config to directory [./DATA/bin/](./DATA/bin/)

![](../images/x86.png)
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

Simple Framework to create game. I using this framework to testing the machine learning AI.

#### Development Note

###### Required of dependence

+ sciBASIC#: [https://github.com/xieguigang/sciBASIC](https://github.com/xieguigang/sciBASIC)
> nuget: Install-Package sciBASIC -Pre
###### Sound Driver

For correctly initialize the sound driver, you must change the solution CPU type configuration to ``x86``
![](./images/x86.png)


###### Screenshots

Expand Down
Binary file added images/x86.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 765d950

Please sign in to comment.