Projeto em linguagem C, que descreve o jogo chamado Real Ur. Jogo encontrado em escavações na antiga cidade-estado de Ur. As regras originais são desconhecidas. O jogo foi criado para seguir as seguintes regras:
-
Um jogador será representado pela peça X e o outro pela peça O;
-
Ambos os jogadores jogam um dado de 4 lados(d4 1-4) o maior valor começa;
-
O jogador joga o dado(d4) e pode optar por colocar uma peça no tabuleiro ou mover uma já existente;
-
O primeiro jogador a passar com todas as peças pelo tabuleiro vence;
-
Quando o jogador cai em uma casa [ * ] ele pode jogar novamente;
-
Duas peças não podem ocupar o mesmo lugar, quando o jogador cai em uma casa ocupada pelo outro jogador, a peça é "comida" e volta para a mão do outro, a jogada não é possível se cai em uma casa ocupada pelo jogador que esta realizando a jogada;
-
A peça só pode ser removida do tabuleito se o número tirado no dado for exato;
-
Caso não existam jogadas possíveis a vez é pulada;
Project in C language, which describes a game named Real Ur
The game was founded in escavations on the ancient city-state of Ur. The original rules are unknwown. The game was created to follow the following rules:
-
One player will be represented as X tile and the other one by the O tile.
-
both players roll a 4-sided-dice(d4 1-4) and the highest value starts.
-
The player rolls the dice (d4) and can choose to place a tile on the board or move an existing one;
-
The first player to pass all the tiles on the board wins;
-
When the player lands on a square [ * ] he can play again;
-
Two tiles cannot occupy the same place, when the player lands on a square occupied by the other player, the tile is "captured" and returns to the other player's hand, the move is not possible if it lands on a square occupied by the player which is making the move;
-
The tile can only be removed from the tablet if the number drawn on the dice is exact;
-
If there are no possible moves, the turn is skipped;