Connect 4 - Assignment
Overview
Connect 4 was developed as part of an assignment at university. There are 3 different versions with varying levels of complexity. Including a graphical version which allows different number of people to play on a user defined board size. They can also choose their pieces and colours.
The assignment was to create the connect 4 game using object oriented programming with C++. As a result the construction of the board and pieces were all objects. The purpose of the exercise was to create an elegant design rather than a visual masterpiece, as a result the menu screen is from a DOS prompt and the user interface and graphics are primitive.
No more development can be done to the program because I don't have the compiler anymore. I hope you enjoy it, never the less.
You can now enjoy my new version of connect 4.
Objective
Take it in turns to insert your pieces into the board. The aim of the game is to become the first player to get four of your pieces in a row. Either vertically, horizontally or diagonally. If there are no slots free, then the game becomes a draw and a re-match is in order.
Instructions
Once downloaded. See below. Start the game by double clicking the connect4.exe file.
Choose one of the three options from the dos menu.
1) plays a text based version.
2) plays a graphical type version.
3) Same as two except is customisable to allow different number
of people and board sizes.
Text Version
Take it in turns to choose the column to insert your piece to. Then enter the a number between 1-7 to insert your piece.
Graphical version
- Click the mouse in the column you wish to play
- Take it in turns and the winner is the one with four pieces in a row. Either vertically, horizontally or diagonally
- To start a new game click the new game button
- And to quit to the menu click the quit button
Multi-player Graphical Version
- Decide on the number of players
- Take it in turns to select the shape and colour of your playing piece
- Take it in turns to click the column you want move into
Install Notes
- Double click the file connect4.exe to extract the files to your hard drive
- Then click the connect4.exe file you just extracted
- Play away
Download
connect4.exe (106 KB) md5: e27a6eb8d465af38b9853d10425b06a6
