scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
46 lines (35 loc) • 1.26 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo Canvas 026</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Canvas test 026</h1>
<h2>Tower of Hanoi</h2>
<canvas
id="mycanvas"
width="600"
height="200"
data-scrawl-canvas
data-base-background-color="honeydew"
></canvas>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>Create the Tower of Hanoi game</li>
<li>Check that dragging works as expected - when user clicks on disc, the disc should not jump</li>
<li>Check that dropping works as expected - when user releases disc, the disc should return to its pivot</li>
<li>Check that dragzone updateOnStart, updateOnEnd correctly apply changes to the selected disc</li>
</ul>
<p><b>Touch test:</b> should work as expected</p>
<p><a href="../docs/demo/canvas-026.html">Annotated code</a></p>
</div>
<script src="canvas-026.js" type="module"></script>
</body>
</html>