Welcome to a simple two-player game, Mystic T-Square. It combines elements of tic-tac-toe, trivia contests, and mystic squares.
Player #1 (looks like an O) chooses a square on one of the eight squares on the grid—one square stays empty, crossed out 🧭 and partly transparent as a reminder—as if playing tic-tac-toe. The game will present Player #1 with a trivia question, which determines who captures the square.
Player #2 (looks like an X) slides one square into the empty position.
The first player to have tokens cover three squares in a row in any direction—whether by adding a token or moving one into position—wins.
Find the source code on GitHub.
Trivia questions come couresy of the Open Trivia Database, made available under the terms of the Creative Commons Attribution Share-Alike 4.0 International license.
👍 Got it
Our trivia source allows the game to prevent duplicated questions during a “session,” allowing players to see a wider variety of questions. Note that, after six hours of inactivity, they delete a session, so you will see duplicates from day to day. Also note that, since not every game uses its allotment of questions, players might run out of questions sooner, if they play for an extended period.
Use Trivia API Session
Enable or disable OTDb sessions.
Reset Session
Abandon the existing trivia session and replace it for the next game by clicking this button.
By default, the second (tile-sliding) player runs automatically with a primitive artificial intelligence. Disable it for a two-player game or configure it below.
AI Player 2
Allow the computer to play for the second player.
Lookahead Depth (0)
Set the number of moves ahead that the AI can examine.
Win Avoid loss Win and Avoid loss Tie Lose Avoid Win Lose or Avoid Win
Determine how the AI should prefer playing. It will try to pick moves that increase the chances of the selected outcome.
👍 Looks good