Whirlwind
Whirlwind is a two player game in which the objective is to connect the two ends of the board.
It is played by placing pieces at the intersections of the lines of a square plate of uniform size.
One of the players has black pieces and the other has white pieces. The top and bottom edges of the board are black, while the left and right edges are white, representing the sides of the board that the respective player has to join.
More informations about the game in Whirlwind at board game geek.
Instructions
If the user wants to start the program through IDE:
- Compile the code;
- Run the Java program;
- Write on console 1 and press the
Enter key
if you want the Swing graphic display, or type 2 and press theEnter key
if you want the display exclusively on the Console.
Swing Interface
Pick a mode
If you chose Swing Interface (1) with the mouse choose the mode you want:
- PVP: Human vs Human;
- PVE: Human vs. CPU;
- EVE: CPU vs. CPU.
Place Pieces
Through click you choose the position where to place the next piece. Do not be afraid to missclick as the game does not advance without making your choice valid.
Console Interface
Pick a mode
If you chose Console (2) enter in the console 1
, 2
, or 3
followed by Enter
to choose between modes, PVP
, PVE
, EVE
, respectively.
Place Pieces
In the turns of the Human player, the pieces are placed by entering the desired line number, followed by the letter of the desired column; for example enter: 5
- Enter
- 3
- Enter
.
In the turns of the CPU player, the move is made automatically.