Rules of 4 in a row
4 in a row is a simple board game for two players. The two players move alternately by
dropping stones of their color in a 7x6 grid. The first player to get four (or more) stones of his
color in a row wins. If neither player can get 4 in a row, the game ends in a draw.
4 in a row is "solved", that means the so-called "game-theoretical value" of the game
is known: with perfect play of both sides, the player to start wins. This was proven 1990 independently
by Victor Allis and James D. Allen with a computer calculation. However, to play perfectly is rather hard, so you
can still go on playing the game...
4 in a row for Windows pits you against a very powerful computer opponent. The playing strength of the computer depends on the speed of your computer and the time you give it to think - the faster your computer is and the longer you let it calculate, the better it gets. The computer opponent can look very far ahead and can usually calculate the game through to the end in a matter of seconds after a couple of moves have been made. If your frustration level is low, you should try another connect 4 program!
Version 2.0 of 4 in a row uses an entirely rewritten connect 4 engine. It is faster than the
the engine version 1.2. The new engine is bitboard-based and uses a 32MB hashtable.
Playing a Game
To start a game, simply click in the column where you would like to drop your stone. After a short
calculation, the computer opponent will respond. The time it takes for the computer to make its move
depends on the level you have chosen. If one side gets 4 in a row, an appropriate message is displayed
and a new game is started automatically.
The Status Bar
The status bar informs you about the computer opponent's calculation. You will see,
from left to right,
- nominal search depth / maximal search depth
- The move the computer currently likes best
- evaluation (large values indicate that the computer is winning)
- number of nodes searched
- time taken
- hashtable efficiency
- speed in 1000s of nodes per second
On my P4 1.4GHz 4 in a row searches around 1200 kN/s.
The Menu Commands of 4 in a row
Quit | quits the program. |
|
New Game | aborts the current game and starts a new game. |
Save Game | saves the current game. |
Load Game | loads a previously saved game. |
Back | moves one move backward in the game, if possible. |
Forward | moves one move forward in the game, if possible. |
Play | either forces the computer to calculate a move for you if it's your
turn, or to play immediately if the computer is calculating.
| Beginner | makes the computer respond instantly.
|
Intermediate | gives the computer about 1 second per move.
| Expert | gives the computer about 5 seconds per move.
| The Master | gives the computer about 1 minute per move.
| Infinite | gives the computer an infinite amount of time. The computer will make a move all the same, if (a) there is only one move which doesn't lose immediately, (b) if it sees a winnning line or (c) if it calculates all possible variations the game can still take. In this mode, the computer always has a meaningful strong move ready if you hit the play (!) button. |
Search Win | is similar but not the same as the infinite mode. The computer will look for a win for the side to move. Once it finds a winning continuation it will play it. If you interrupt it while 'found no win' is displayed in the status bar, the computer's move may be very weak. Also, if the position is a draw, the computer's move might still lose. This mode only works if the side to move really has a win. In this case, it is usually faster than the 'infinite' mode in finding a win.
|
Randomize | makes the computer play more randomly.
|
Help | opens this file. | 4 in a row Homepage | opens the 4 in a row for Windows 95/98/NT webpage. Here
you might find a newer version of the program and some links to good 4 in a row sites on the web. You will need an internet connection for this to work. |
4 in a row Tutorial | opens my 4 in a row tutorial, which should help you
to play better. If you have trouble winning even a single game against 4 in a row, set the level to beginner and turn off the opening book. If you still cannot win, study the tutorial. If you still cannot win, run two instances of 4 in a row, set one to beginner & turn off the book, and let the other one beat it. Try to find out how it works and learn from it. Don't be frustrated if you cannot beat the computer on higher levels. 4 in a row for Windows is really very hard to beat. | About | opens a small about box |
The Toolbar
In the toolbar you have quick access to the commands
- New Game
- Back
- Forward
- Play
- Help
- Save Game
- Load Game
written in february 2003 by Martin Fierz
|