Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Connect 4 Urgent Help Please Help Asap
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DKNY




PostPosted: Sat Jan 10, 2009 6:09 pm   Post subject: Connect 4 Urgent Help Please Help Asap

i have been working on a modified version of connect 4, and i am posting it here to ask for assitance. I have made it to the point that there is a grid, 8 horizontal lines and 13 vertical lines. The program so far runs, and the player is asked to input a column number. Indicating where the game piece should be played. The game so far a player can play a circle from anywhere of the bottom column. I am wondering how can i make it so the player can play on the same column but above the game piece. Also to modify the game so the computer also plays a random circle when it is the computers turn. If you could honestly help me with this, this project is very big to me, and im looking for it to work. please please. If someone could look at my attached file, and add the remaining details to make the game work , please. it would be greatly appreciated thanks.

thanks
DKNY



connect4.t
 Description:
connect 4 , so far,

Download
 Filename:  connect4.t
 Filesize:  2.42 KB
 Downloaded:  76 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
The_Bean




PostPosted: Sat Jan 10, 2009 8:18 pm   Post subject: Re: Connect 4 Urgent Help Please Help Asap

1) This is the Turing Submissions section not the help section
2) We will not do work for you, but help understand what to do

A good method would be to make a record containing information to see if the box is filled, and what colour is in it.
Make a 2D array for the columns and rows of the record type.
Use 'for loops' to draw the circles and lines. Drawing each one by hand is a complete waste.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: