Results 1 to 2 of 2
Thread: Making connect 4 in java
- 07-24-2007, 12:12 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
- 08-07-2007, 06:10 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
What are the criteria of the assignment? I had a connect 4 game assignment in java back in college but I also designed a GUI for it. This seems like a bit of an advanced problem for a teacher to assign in a beginning java programming course.
The key to this is to use an array to keep track of the board pieces. And you will have to write methods that check for available spots on the board as well as a winning move which means checking for 4 pieces in a row which can be vertical, horizontal or diagonal.
I also don't really see how you can do this without having some kind of GUI. You have to be able to see where you want to put your piece. By not having a GUI does that also mean not having any kind of board layout display via the DOS/terminal window?
Greetings.
Similar Threads
-
Help with Java application to connect to a database
By coco in forum JDBCReplies: 3Last Post: 09-18-2008, 03:07 PM -
making a count down timer using java
By saytri in forum New To JavaReplies: 3Last Post: 12-29-2007, 09:49 PM -
code for making a java swing program a demo verson
By fakhruddin in forum AWT / SwingReplies: 1Last Post: 11-27-2007, 08:54 PM -
Connect Java application to photo editor
By syellows in forum Advanced JavaReplies: 1Last Post: 11-21-2007, 12:09 AM -
Making a Java web calendar
By toby in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-07-2007, 06:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks