Re: a project for beginner
Quote:
Originally Posted by
Alexz003
See the only problem is i wouldn't know how to put it together because even though i have played connect 4 i still don't know how i can set limitations on the board size and where the pieces of the computer go.
Use simple English to describe your problem, and things will fall into place:
-You want to simulate a Connect4 game/object: Create a Connect4 class
-A connect4 game is a grid of pieces: 2D Array
-Pieces in the board can be either empty, black or red: Enum
-You need to put pieces into the board: create a insertPiece Method.
Once this is done, all you use your board: Have two players take turn putting pieces into the board. Display the board after every play, and keep going.
My advice is to keep it simple, create something that works, and then make it progressively better. Take it one step at a time, and you should make it.