Created
May 17, 2016 18:46
-
-
Save JeremyLikness/0d5c68e9eb20e779b60b764346236108 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| draw = true; | |
| for (let x = 0; draw && x < this.winLines.length; x += 1) { | |
| draw = this.draw(this.winLines[x]); | |
| } | |
| if (draw) { | |
| this.gameState = GameState.Draw; | |
| return; | |
| } | |
| this.gameState = this.gameState === GameState.XTurn ? GameState.OTurn : GameState.XTurn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment