To create a complete client/server application, and design a protocol from scratch.
For this project you will create a networked version of the Connect 4 game. This will involve writing a client and a server. When using the client, a user will be able to play a game of Connect 4 against the computer. You don't need to match up multiple human players, just play against an AI.
Connect 4 is a popular game consisting of a grid of spaces. The grid has 7 columns and 6 rows. Players take turns placing colored pieces into a column of their choice. When a player puts a piece into a column, the piece will fall down until it lands on another piece in that column. The game is over when one player has four of their colored pieces in a row (horizontally, vertically or diagonally).
The game Connect 4
Your networked version of this game should do the following things:
There are a few opportunities for extra credit:
When writing your program, also be sure to:
For this project, you can work with a partner. You are free to choose your partner yourself. If you would like a partner but don't have one, email me and I will match you up with someone else who wants a partner.
You are also free to work alone if you prefer.
To submit your program, email the program file to email@example.com.
Copyright © 2021 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.