*********************************************************************
STRATEGY CHESS

Gameplay Instructions

For Google Desktop
By Jeremy Glassenberg

********************************************************************

Table of Contents

*******************************************************************

1. Introduction

2. Setup Mode

3. Single Player Gameplay

4. Setup Board

5. Game Board

6. Playing the Game!

7. Rules of Strategy Chess

8. Links

9. Planned Improvements

10. Credits


*************************************************************
1

Introduction
*************************************************************

Back to Table of Contents

Welcome to Strategy Chess for iGoogle! With this widget, you can play against the computer, from any computer. Feel free to install this on iGoogle or any other customizeable start page.

This article is written to help you understand the interface of this widget. I tried to make this interface as simple as possible, but a board game with a 10x10 board and 80 customized pieces can only be kept so simple. If you need more help, in particular with learning the rules of the game, please check out the links in section 8.
*************************************************************
2

Setup Mode
*************************************************************
Back to Table of Contents


Whenever you first startup the Strategy Chess plug-in, finish a game round, or cancel a game in progress, you will find yourself at the Setup Page.


Here, you will see two objects. The first, on the right, allows you to choose the difficulty setting - that determines how smart your computer opponent will be. The second object on the left is where you will setup your pieces.



************************************************************
3

Single Player Gameplay
************************************************************
Back to Table of Contents

When you start a single player game, you will first be asked to select the difficulty level on the right.

 

Simply select one of four options, and then direct your attention to the board setup. Here, you must place your units on the board where you want them to be located at the start of the game (see section 4 for more information on how the Setup Board works).

Click on "Play" when your board is set up to your liking, and you are ready to play.

NOTE: you cannot start the game unless all your units are placed on the board. See setup (section 5) for more information.


************************************************************
4

Setup Board
************************************************************
Back to Table of Contents

You reach the setup board by either choosing to play a single player game, or choosing a multiplayer game and getting a friend to accept your challenge. You must complete the setup before you can actually play the game.


At the setup screen, you will see a 10x10 board. The top part of the board represents one end of the actual play board (if you are unfamiliar with the appearance, you may want to go to section 6, links, to see pictures of the Strategy Chess board). The yellow blocks represent the locations where you are to place all of your units. The bottom blocks are filled with your units, which you are to move onto the yellow blocks to setup your starting position.

In order to move units, simply click on a unit that you wish to move, and drag it to the box where you want to place it.

You may move units to any empty block, and move units around after placement, if you decide to move a unit to a different location. Just remember that the game cannot start until ALL units are placed in a valid starting location. That means that all yellow blocks must be filled, or you will not be allowed to start the game.

Setting up 40 units may take a while, and might not be worth just one round of Strategy Chess for you. Although it is customary to setup the pieces yourself to show off your creative and unique strategy, this game has a special button to set up the board for you. Just click the "1-Click Setup" button, and the board will automatically set up your units to a randomly selected, pre-created board setup (there are currently about 2 dozen board setups). You can click the button as many times as you'd like, until you find a board setup that you like. Futhermore, you may modify one of these setups after clicking the button.

 

Once you are done setting up your units to your liking, click play, and get ready to play!


************************************************************
5

Game Board
************************************************************
Back to Table of Contents

You will reach the game board after setting up your units.

At the game board, you will see a 10x10 board, with blue and red units. The blue units are your units - you will see that they are set up the way you chose, on the setup board. The red units will all be "?" symbols. These are your opponent's units, which you cannot see unless you attack them.

You will also see some information displayed on the right of the board. At the top, is a "T: number". This indicates how many turns have passed. The other information tells you how many of each unit your opponent still has. For example, "S: 1" means the opponent still has a spy, and "8: 4" means that your opponent still has 4 units of rank 8 on the board.

When it is your turn, you will be able to move a unit. When playing single player, you should always be able to move a unit. After each move you make, the computer will move almost instantaneously. When playing multiplayer, however, you will have to wait for your friend to make his/her moves. The side-panel will let you know when you are able to move by dislpaying "Go!" to move, and "Wait" when it is your opponents turn.

You may move a unit by selecting it, then clicking on the location of which you want to move your unit (the same way you move units in the setup board). However, keep in mind that you can only move a unit to an adjacent block. Furthermore, you cannot move your mines, or your flag.


************************************************************
6

Playing the Game!
************************************************************
Back to Table of Contents

You've finally set up your 40 units, and got familiar with the board. Now, you're ready to play!

If you are not familiar with the rules of this game, you may want to read section 7 for more details on the rules of the game.

This game is turn-based. You move one unit at a time, and after every move, your opponent moves a unit. When you are playing the computer, the computer will decide its move very quickly. Thus, after you make your move, watch what move the computer plays, as it will be fast! (I may add a delay time, so that it will be easier to see what the computer does.) When you play another person, after you make a turn, you will have to wait for your friend to make his/her move.

Moving a unit during play is the same as during setup. However, you can only move units to adjacent blocks, as a unit is only allowed to move one block per turn. Furthermore, you cannot move your flag or your mines (so protect your flag in the back, because you can't move it away when the enemy is near!). Click on a unit that you want to move, and it will be highlighted. Then click on an adjacent block where you want to move it.

When you move one of your units onto an opponent's unit, they will fight. Depending on the outcome (see section 7 to learn the outcomes), the loser unit will be removed from the board, and the winner will move to the other location (note: there is an exception to this rule. Whenever a mine is attacked, the mine always stays in its location). If the winner is your opponent's unit, you will be able to see the rank of that unit for one turn. Be observant, and try to remember what that unit is! After the next turn, that unit will become a mystery again, so you'll have to rely on your memory to know which units your fighting in later turns. This game requires some good memory to have the advantage over your opponent.

************************************************************
7

Rules of Strategy Chess
************************************************************
Back to Table of Contents

Strategy Chess can have different rules of gameplay. Especially on a regular board, 2 players can agree to their own rules of play. The following are the specific rules of play for this Strategy Chess game. In the future, I may set options for users to decide on certain rules.

7.1 Player movement

The game is turn-based, so at each turn, one player will get to move one unit, to one adjacent block. That spot must be either an empty spot, or an opponent's block. The unit cannot be moved to a block with another friendly unit, and cannot be moved to any of the 8 invalid spots on the board (marked by Xs on the board).

7.2 Unit fights

When a unit moves onto the block of an opposing unit, the two units will fight. The outcome is determined by the following rules:

* Whenever numerical units (1-9) fight each other, the unit of lower value is the winner (so 2 beats 4, 5 beats 7, etc.).


* Whenever a Spy (S) attacks a General (unit 1), the spy wins. However, if the 1 attacks the Spy, the 1 wins.

* Whenever a unit that is not a Spy fights a Spy, the other unit wins. There are two exceptions: a Spy attacking 1, and a Spy capturing the flag.

* Whenever a unit runs into a mine (M), the mine wins. The only exception is an 8, which can destroy mines.


* Whenever units of the same value attack each other, both unitsare destroyed.

* Whenever two units fight, if there is a distinct winner, that unit moves to the opposing unit's location. The only exception is for Mines, which always stay in their starting location.

7.3 End Game

A game can end in 2 ways. The first, a units flag is attacked (captured), in which case the player that captures the flag is the winner. The second scenario is when one player cannot move any units, in which case he/she automatically loses.

Players may also forfeit the game by clicking on the "Quit Game" button before the game is over.


************************************************************
8

Links
************************************************************
Back to Table of Contents

The following site is probably the best site for information, including rules, alternative rules, and strategies.
http://www.edcollins.com/stratego/stratego-piece-setups.htm


************************************************************
9

Planned Improvements
************************************************************
Back to Table of Contents

Here are a few improvements I plan to implement shortly.

-A means of expanding the board. It was currently designed to be as small as possible, in order to be a reasonable size for a widget, but I'm sure many of you would want to have a larger board to play.

-Options to play different variations of the game. Many are modifiable for more interesting gameplay, such as mines being destroyed upon first attack, or different number of units.

-Various improvements to the graphical interface (images, buttons, etc.)

-An option to let user's switch the angle of the board (completed).

-Additions to the computer's AI algorithm. I have a few more tricks up my sleeve for the AI, so get ready!

-Removal of certain Dialog boxes that pop up. I will try to replace some of these with update options on the main widget. (completed)

-Improved Animation (currently, there is a serious tradeoff between animation and CPU usage. I am trying to figure out a decent workaround at the moment.). (CPU issue has been fixed)

-A 3-4 player version of the game.


************************************************************
10

Credits
************************************************************
Back to Table of Contents

I would first like to express my gratitude to Google, for its sample gadget, Tic Tac Toe. Some of my code for the graphical interface as well as handling the multi-player game was based on code in the Tic Tac Toe gadget.

I would also like to give credit to Ed Collins, creator of "Ed's Stratego Site" (http://www.edcollins.com/stratego/stratego-piece-setups.htm), which provided a list of player setups that are used for the AI in Single Player mode.