This is an example situation towards the end of a game, you need to be able to check each of the non-movable pieces (3 & 4) to see whether they are movable. It would also probably be nice if this algorithm wasn't run every time a player moved but maybe checked in the beginning and then only certain conditions were checked when the player moved. Squares have easily checkable state such as hasPiece(), hasEnemyPiece(), hasUnMovablePiece(), hasMoveablePiece(), isBlocked(). If you are new to Stratego, I honestly recommend playing with the classic rules a few times before you even sample this variant’s extra flavor.I am creating a Stratego Game and am having trouble creating an algorithm that can detect when there are no more possible moves because all your pieces are gone or the remaining pieces are unmovable or trapped by forbidden squares, unmovable pieces, or other trapped pieces.įor simplicity you can think of the board as an array of Squares which can contain pieces. Pieces cannot jump over or move through an occupied square. Two pieces cannot occupy the same square at the same time. Only forward, backward, and sideways movements are possible. It would take a while to get into them all…but they affect gameplay immensely. During a turn, only one piece can be moved (except Scouts, see Specialist Pieces ). Your Marshal is your strongest man, but vulnerable if not protected from the Spy. You must plan the battle, advance your men, attack and capture the enemy Flag. Fire and Ice adds special abilities to all of the ranked personnel rather than just giving extra movement to the “2″ pieces and trap busting to the “3″ pieces. Stratego Game Rules On a lonely battlefield you meet your opponent for a skirmish that will decide the fate of your army. That’s all there is to it…at least…in regards to the classic rules that we all know and love. Pieces can’t share spaces nor can they jump over each other…so setting up your army well before play begins is ideal. The rest of the army is limited to moving one space. The flag and traps are unable to move and the “2″ / Scout pieces can move as many spaces as they want after revealing that they are scouts. In regards to movement, players move one piece per turn. The flag can be captured by any movable piece, even the slayer. The flag is still the flag…like traps, it cannot be moved after it is first placed in your initial setup. They can remove traps without resulting in their demise. The traps (this variant’s version of bombs) automatically kill anyone foolish enough to run into them with the exception of the “3″ / Dwarf pieces. The slayers (this variant’s version of spies) can capture the “10″ / Dragon piece but automatically loses against anyone else. Keeping your flag in the back and well protected is generally a good idea. There are, of course, exceptions to this rule…namely the trap and slayer pieces. In the case of a tie, both pieces are removed. When two pieces of different colors meet, they are both revealed and the higher number wins. Their values are known only to the player controlling them. In this version, the highest rank is “10″ and the lowest rank is “2″. Stratego starts with two players placing their pieces on identical halves of the grid-based board. To capture the flag you use your army of 40 pieces. For the sake of this review and to keep things consistent, I’ll be using the Fire and Ice variant’s rank system. Play Stratego in the classic 40 vs 40 setup. Stratego is a game in which you need to capture the flag of your opponent while defending your own flag. Their rank determines a win or loss during a battle, in most cases. Players are given units that are numbered between “1″ and “10″, depending on what variant of Stratego you are playing. Like the rest of your army, the flag is hidden from the enemy so that players will be forced to guess on where it is located. No matter how badly you are losing, capturing the flag will still net you a win. The goal of Stratego is to capture the enemy flag. Pieces are blank on the side facing the enemy…this is so that players can’t see what their enemy is up to and how they are deploying their troops. Stratego is a two player game that gives players an army of equal size, which are setup any way they like before play begins. Players who have a good memory and pay attention do well in this game.
0 Comments
Leave a Reply. |