Two players, Player 001 and Player 002, are trapped in a mysterious tree-shaped battleground. Their objective is to visit the least number of nodes—because in this game, the more steps you take, the closer you are to elimination.
The game is controlled by the Squid Game Dummy, who gives each second a Green Light to move and a Red Light to stop. This ensures that both players move simultaneously when the Green Light is given. Keep in mind that both players will aim to play optimally.
Game Rules
The Front Man's Twist
The Front Man noticed that with an even number of nodes, the game often ends in a tie—which he finds boring. To ensure a decisive outcome, he made sure that the number of nodes in the tree is always odd.
23 11 22 33 25 21 22 33 44 51 41 5
001 002 Remake!
This is an example of a gameplay. Let's use a black dot to represent each player's current position. Each player has their own black dot. Query 1:
test case 2 query 1. At time t=2: Player 2 must move toward the closest unvisited node, so they start walking toward Node 3. Player 1 also moves toward the closest unvisited node, which is Node 3.
At time t=3: All nodes have been colored and visited by at least one player, so the game ends.
Query 2:
test case 2 query 2.