MVP of webpage
This commit is contained in:
parent
6364a54979
commit
37375b2fac
51
index.html
Normal file
51
index.html
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
|
|
||||||
|
<title>Roulette Demo</title>
|
||||||
|
|
||||||
|
<!-- <link rel="icon" type="image/png" href="favicon.png" /> -->
|
||||||
|
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
|
||||||
|
|
||||||
|
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
|
||||||
|
<link rel="stylesheet" href="./assets/css/examples.css" />
|
||||||
|
<link rel="stylesheet" href="./assets/prism/prism.css" />
|
||||||
|
<script defer src="./assets/prism/prism.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<nav class="navbar" style="background-color: #000000;">
|
||||||
|
<div class="app-header">
|
||||||
|
<!-- <a href="/">
|
||||||
|
<img src="./logo.png" class="logo">
|
||||||
|
</a> -->
|
||||||
|
<a class="title" href="" style="color: #f0ab3c;">Roulette</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<section class="pyscript">
|
||||||
|
<div class="font-mono">Simulating Games: <label id="outputDiv"></label></div>
|
||||||
|
<div id="outputDiv2" class="font-mono"></div>
|
||||||
|
<div id="outputDiv3" class="font-mono"></div>
|
||||||
|
<py-config>
|
||||||
|
packages = [
|
||||||
|
"pyroulette",
|
||||||
|
]
|
||||||
|
</py-config>
|
||||||
|
<py-script>
|
||||||
|
from pyroulette import *
|
||||||
|
# seed(59)
|
||||||
|
players = generate_players(num_players=1000, min_num_games=20, total_budget=100)
|
||||||
|
players = play_roulette(players, games=100)
|
||||||
|
|
||||||
|
for p in sorted(players, reverse=True):
|
||||||
|
print(p, "\n<br>")
|
||||||
|
|
||||||
|
</py-script>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user