33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
|
---
|
||
|
layout: default
|
||
|
nocard: true
|
||
|
title: Markov Chains
|
||
|
---
|
||
|
<link rel="stylesheet" type="text/css" href="/css/markov.css">
|
||
|
|
||
|
<div class="card buttons">
|
||
|
<span class="button" onclick="rock();">✊</span>
|
||
|
<span class="button" onclick="paper();">✋</span>
|
||
|
<span class="button" onclick="scissors();">✌</span>
|
||
|
</div>
|
||
|
|
||
|
<div id="versus" class="card">
|
||
|
<span class="text">you →</span><span class="button" id="player">✊</span>
|
||
|
<span class="text" style="display: inline-block; vertical-align: middle;">VS</span>
|
||
|
<span class="button" id="com">✊</span><span class="text">← me</span>
|
||
|
<br />
|
||
|
<h3 id="result">Computer Wins</h3>
|
||
|
</div>
|
||
|
|
||
|
<div class="stats card">
|
||
|
<h2>Stats</h2>
|
||
|
computer wins: <span id="loss">0</span><br />
|
||
|
 expected: <span id="loss_expected">0</span><br /><br />
|
||
|
player wins: <span id="win">0</span><br />
|
||
|
 expected: <span id="win_expected">0</span> <br /><br />
|
||
|
ties: <span id="tie">0</span><br />
|
||
|
 expected: <span id="tie_expected">0</span><br />
|
||
|
</div>
|
||
|
|
||
|
<script src="/js/markov.js" type="text/javascript"></script>
|