From: Dylan Lloyd Date: Thu, 18 Jun 2015 01:02:22 +0000 (-0700) Subject: clean up x drawing X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=757e07a7e1cef6c0ec949aacaa7004f5961bc160;p=minimax.git clean up x drawing --- diff --git a/ai.js b/ai.js index 0bf29a5..8bb027c 100644 --- 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);