Four in a row game - user vs. computer.
Each turn the user and the computer select a column and drop a token, the first one (user or computer) that gets 4 token in a row, colum or diagonal wins.
Has 2 levels -
- Easy - the computer puts tokens randomly.
- Hard - the computer tries to block the user from winning.
Server is the computer - the game from the computer prespective -
- Handles the game -
- Handels connection to the game.
- Check user's input.
- Place the tokens in the board (for both - user and computer).
- Checks who wins.
- Calculate statisticts for each round and game.
- Plays as computer - chooses a columns to drop token to.
The game from the user prespective -
- Chooses the level of the game.
- Lets the user choose column to drop to.