summaryrefslogtreecommitdiff
path: root/interactor
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-01 22:01:07 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-01 22:01:07 +0200
commit65ede200c73ebaa450efc859de99fbc7aa80ed7a (patch)
tree36bac3dac4bf0731991ab54b424f3a3c45293916 /interactor
parent233160e17ff451e52621b10d5d00d99e7800c2db (diff)
interactor: Fix canvas size
Diffstat (limited to 'interactor')
-rw-r--r--interactor/game.html2
-rw-r--r--interactor/game.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/interactor/game.html b/interactor/game.html
index 20def4f..7f04e7c 100644
--- a/interactor/game.html
+++ b/interactor/game.html
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="/game.css">
</head>
<body>
-<canvas id="cvs" width="370" height="370"></canvas> <br>
+<canvas id="cvs" width="368" height="368"></canvas> <br>
<div id="status"></div>
diff --git a/interactor/game.js b/interactor/game.js
index 85674b1..bf2b97f 100644
--- a/interactor/game.js
+++ b/interactor/game.js
@@ -5,7 +5,7 @@ var EMPTY = 0, WHITE = 1, KING = 2, BLACK = 4;
var BOARDMID = N * ~~(N/2) + ~~(N/2);
var cvs, ctx;
-var cellSize = 40, cvsSize = N * cellSize + N+1;
+var cellSize = 40, cvsSize = N * cellSize + N-1;
var socket;
var playing = false, onturn = null, aiplayer = null;
var lastMove = null;