Update LICENSE + TODO
[vchess.git] / hexaboard_test.html
diff --git a/hexaboard_test.html b/hexaboard_test.html
deleted file mode 100644 (file)
index 86abc2e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title> Chess Board</title>
-</head>
-
-<body>
-
-<canvas id="myCanvas" width="560" height="560" style="border:2px solid #d3d3d3;">
-Your browser does not support the HTML5 canvas tag.
-TODO: describe chessboard ?
-</canvas>
-
-<script>
-
-// TODO: draw hexagonal board, allow click and drag pieces
-// ==> work with coordinates and current board size as a parameter
-
-var c=document.getElementById("myCanvas");
-var ctx=c.getContext("2d");
-
-for(i=0;i<8;i++)
-{for(j=0;j<8;j++)
-{ctx.moveTo(0,70*j);
-ctx.lineTo(560,70*j);
-ctx.stroke();
-
-ctx.moveTo(70*i,0);
-ctx.lineTo(70*i,560);
-ctx.stroke();
-var left = 0;
-for(var a=0;a<8;a++) {
-    for(var b=0; b<8;b+=2) {
-      startX = b * 70;
-      if(a%2==0) startX = (b+1) * 70;
-      ctx.fillRect(startX + left,(a*70) ,70,70);
-       }}
-}}
-
-let x=100, y=100, size=40;
-ctx.beginPath();
-ctx.moveTo(x + size * Math.cos(0), y + size * Math.sin(0));
-for (let side=0; side < 7; side++) {
-       ctx.lineTo(x + size * Math.cos(side * 2 * Math.PI / 6), y + size * Math.sin(side * 2 * Math.PI / 6));
-}
-ctx.fillStyle = "#333333";
-ctx.fill();
-
-var img = new Image();
-img.onload = function() {
-           ctx.drawImage(img, 0, 0, 60, 60);
-}
-img.src = "public/images/pieces/wb.svg";
-
-</script>
-
-</body>
-</html>