This is the archived CodeCup 2021 website. Click here to go to the new CodeCup website. |
IntroductionZuniq is an abstract game for two players created by Marcos Donnantuoni. It has very few elements and yet an unexpected complexity. Board
The board is a grid of evenly spaced dots.
The version played on the CodeCup is the version of 6 dots per side.
The dots are on the lines indicated with Moves
Players take turns joining two horizontally or vertically adjacent dots by a segment, the White player starts and the Black player alternates, and so on.
In the example below the first three moves
Eventually, closed zones will form.
The examples shows a situation that is almost close to a win.
By playing It's irrelevant which player closes which zone; zones do not belong to any player. There are only two restrictions:
GoalZuniq’s goal is simple: to be the last player able to move. The player who cannot make a move (either because there are none possible or because it would make a zone with repeated size) is the loser. Draws are impossible. Score
The player that wins gets a score of Input/outputA communication protocol has been designed for your program to communicate with the judging software. You will read the moves of the other players from stdin (standard in). You must print your own moves to stdout (standard out). You are free to write to standard error (stderr), which you can read after the game has been played and you have been logged in on the website, with a maximum of 10000 characters per game.
If your player is White, the first line you will read is “
If your program makes an illegal move you will be sent a “ Example communication of a normal game
CompetitionFor the competition each player plays each other player exactly twice, once as the black player, once as the white player. The overall winner of the competition is the player with the highest number of points overall. If your program exceeds the time limit, crashes or makes an illegal move, your program will receive 0 points. The play is resumed using a player, controlled by the jury, that randomly plays moves so that your opponent can still score points. See the technical rules for more information about this. LicenseZuniq by Marcos Donnantuoni (marcosd(at)gmail.com) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. |