43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<script src="jquery-1.7.1.js"></script>
|
|
<script src="utils.js"></script>
|
|
<script src="tetris-stats.js"></script>
|
|
<script src="tetris-canvas.js"></script>
|
|
<script src="tetris.js"></script>
|
|
<script src="tetris-ai-robertko.js"></script>
|
|
|
|
<style>
|
|
body {
|
|
font-family: Courier, "Courier New", monospace;
|
|
}
|
|
#tetris-board, #next-bricks {
|
|
background-color:black;
|
|
display: inline-block;
|
|
}
|
|
#lines {
|
|
font-size: 4em;
|
|
font-weight: bold;
|
|
}
|
|
#infobox {
|
|
text-align: center;
|
|
display: inline-block;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div style="height:800px;width:700px;position:absolute;top:50%;margin-top:-400px;left:50%;margin-left:-350px;">
|
|
<div style="display:inline-block;"><canvas id="tetris-board" height="720" width="480" /></div>
|
|
<div id="infobox" style="position:relative;top:0px;left:20px;width:200px;">
|
|
<hr />
|
|
<p>Lines:<br /><span id="lines">0</span></p>
|
|
<hr />
|
|
<p>Next bricks:</p>
|
|
<div><canvas id="next-bricks" height="500px" width="100px" /></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|