disinclined.org
/
git
/
minimax.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d001315
)
clean up x drawing
author
Dylan Lloyd
<dylan@dylansserver.com>
Thu, 18 Jun 2015 01:02:22 +0000
(18:02 -0700)
committer
Dylan Lloyd
<dylan@dylansserver.com>
Thu, 18 Jun 2015 01:02:22 +0000
(18:02 -0700)
ai.js
patch
|
blob
|
history
diff --git
a/ai.js
b/ai.js
index
0bf29a5
..
8bb027c
100644
(file)
--- a/
ai.js
+++ b/
ai.js
@@
-54,9
+54,7
@@
$(document).ready(function(){
ctx.lineWidth = 10;
ctx.stroke();
} else if (player == 'x') {
- ctx.moveTo(centerX, centerY);
ctx.beginPath();
- ctx.lineTo(self.cellSize, canvas.height);
ctx.moveTo(centerX - 50, centerY - 50);
ctx.lineTo(centerX + 50, centerY + 50);
ctx.moveTo(centerX + 50, centerY - 50);