Skip to content

Commit

Permalink
machine learning AI
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Yogi authored and Karl Yogi committed Aug 12, 2016
1 parent 7885c7e commit 66b29c5
Show file tree
Hide file tree
Showing 3 changed files with 555 additions and 70 deletions.
23 changes: 16 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@
<title>Document</title>
</head>
<body>

<!-- <input type="radio" name="radio" id="radio1" class="radio"/>
<label for="radio1">Third Option</label>
<input type="radio" name="radio" id="radio2" class="radio"/>
<label for="radio2">Third Option</label> -->

<div>
<div style="display: inline;">
<input type="radio" name="radio" id="radio1" class="radio"/>
<label for="radio1">AI</label>
<input type="radio" name="radio" id="radio2" class="radio" onclick=""/>
<label for="radio2">Train Machine Learning</label>
</div>
<div style="display:inline; margin-left:100px;">
<span><span>x win:</span> <span class="xwin">0</span></span>
<span><span>o win:</span> <span class="owin">0</span></span>
<span><span>tie:</span> <span class="tie">0</span></span>
</div>
</div>


<canvas id="player" width="500" height="100"></canvas>
<canvas id="demoCanvas" width="500" height="500"></canvas>
</body>
Expand All @@ -22,7 +31,7 @@

function chooseYourRole() {
// ***Demo Start***
board.chooseRole('x');
board.chooseRole('o');
// ***Demo End***
}

Expand Down
3 changes: 1 addition & 2 deletions ml.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

var ml = {
"updateConstant": 0.4,
"hypothesis": [0.5,0.5,0.5,0.5,0.5,0.5],
chooseMove: function() {

},
getTrainingExamples: function(history){

Expand Down
Loading

0 comments on commit 66b29c5

Please sign in to comment.