The UU-GAME is a two-player board game designed to be played in the terminal by two players on the same device using the keyboard. The goal of the game is to eliminate all but two of your opponents pieces by creating mills.
Before starting the game, the players will be assigned the colors black and white. This color determines which color of pieces they will be playing. When the game starts, each player has 11 pieces of their color. The player who is assigned the black color will begin the game.
The game can be divided into three main phases:
- The players take turns placing their pieces on the intersections of the board. There can only be one piece at a time on each of the intersections. When a player has placed all 11 pieces, the player will move into the second phase.
- The players will take turns moving their pieces. A piece can only be moved to unoccupied adjacent intersections connected by lines. If a player cannot move any of their pieces, that player will automatically lose the game. A player moves from phase 2 to phase 3 when the player only has 3 pieces left on the board.
- The player can move their pieces to any unoccupied intersection on the board. The player is only allowed to move one piece per round during all three phases.
During any of these three phases, the players can create mills. Creating a mill means having three adjacent pieces in a row that are connected by lines. If one of the players makes a mill, they will be allowed to remove one of their opponent pieces. They are only allowed to remove a piece from one of the opponent’s mills if no other pieces are available.
There are four cases in which the game can end:
- If one of the players only has two pieces left on the board, this makes the other player the winner.
- If the game exceeds a total of 250 turns, in this case the game will end in a draw.
- If a player cannot move any of their pieces in phase 2, in this case that player will lose.
- The game can end with one of the players surrendering, quitting, exiting which leaves the other player as the winner.
- whole code was written by Group A
- python version: 3.9
- none
Players can choose to play game Local or Online in menu, which contains to play with real players or AI bots.
- Local:
- Play with 1 player
- AI bot that you can decide difficulties by Easy, Moderate, Hard
- Online:
Should be played using at least 2 terminals, one for Server, the other for Client.
- Start a server: Just hold a sever, not playing a game. Chose "player num", "bot num", "port", then wait for others' connection, if players full then start the round-robin tournment.
- Join an existing server: Chose "port" and enter "name" to join the game, waiting for server to start game