- The middle box is marked as X to make this game impossible
- When the player places a mark, the computer checks if there are any rows without player's mark, AND includes computer's mark, this provides the computer the fastest step to winning
- The computer checks whether or not it is winning, if so, the computer will place a mark to win the game
- If the computer is not winning, and the player is winning, the computer will place a mark to prevent the player from winning
- A code will check for the winner every time after player places a mark. Either win, loss or tie, the game will end and neither of them can place a mark
- A message will pop up indicating win, loss or tie.
-
Notifications
You must be signed in to change notification settings - Fork 0
A fun project made with vanilla HTML, CSS and JS.
License
dandycheng/impossible-tic-tac-toe
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A fun project made with vanilla HTML, CSS and JS.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published