clean up x drawing
authorDylan Lloyd <dylan@dylansserver.com>
Thu, 18 Jun 2015 01:02:22 +0000 (18:02 -0700)
committerDylan Lloyd <dylan@dylansserver.com>
Thu, 18 Jun 2015 01:02:22 +0000 (18:02 -0700)
ai.js

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);