(04-14-2023, 01:01 PM)DiegoDsD Wrote: Here's the code, I don't know if it's the fastest way to do it but does the jobThat works! Thanks!
The remaining rules are as follows.
After each player has placed one Pawn, the placement phase ends and the move phase begins.
(At any time, there can only be one Pawn per player on the board.)
move phase
Both sides take turns moving their Rooks. The Rook's movement rules are as follows:
- it must make three moves at a turn.
- Each move involves moving straight ahead until it reaches an obstacle (including Neutral Dots, the opponent's Rook, or the edges of the board at the corners), at which point it must stop.
- When transitioning from one move to the next, it can only move left or right (assuming the previous move was straight ahead), and when it is unable to move left or right, it must move backwards.
- The four "non-corner" edges are "passable", meaning that when moving upwards, for example, the Rook will come out from underneath.
- When the Rook passes over an opponent's Pawn, it will capture it, but only if it is on its second move is scoring.
- Passing one's own pawn, it will not be taken, but if the third move stops on one's own pawn, it is equivalent to helping the opponent to take and score.
- After a player has taken three moves, if there are no his own Pawn on the board, he must place a new Pawn in any empty space.
Winning
- When a player first reaches 5 points, he win this game.
- If the first player reaches 5 points first, the second player can continue to complete this round.
- After the game ends, the players switch sides and start another game. Generally, the neutral pieces need to be reset, but if both players agree, the same terrain can be used with another starting conner positions.
- After two games, winner is the highest scores.
Game Story
The game name is Crazy Singer. This game takes place on a stage where two crazy singers(Rook) are competing against each other. They need to pick up microphones(Pawn) that are on the ground and then sing to earn points. How to evaluate if they sing well or not? This can only be confirmed by picking up the microphone in Step 2. Otherwise is there any other fair way??