diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-07-01 22:01:07 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-07-01 22:01:07 +0200 |
commit | 65ede200c73ebaa450efc859de99fbc7aa80ed7a (patch) | |
tree | 36bac3dac4bf0731991ab54b424f3a3c45293916 | |
parent | 233160e17ff451e52621b10d5d00d99e7800c2db (diff) |
interactor: Fix canvas size
-rw-r--r-- | interactor/game.html | 2 | ||||
-rw-r--r-- | interactor/game.js | 2 |
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; |