Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2007, 02:12 AM
zoe zoe is offline
Member
 
Join Date: Jul 2007
Posts: 40
zoe is on a distinguished road
Making connect 4 in java
Hi, I have been set the challenge of making connect 4 in java in as simple way as possible without the use of a GUI and I'm not really sure where It start as i am very new to programming and java so could someone please possibly help me.
Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 08:10 AM
Member
 
Join Date: Jul 2007
Posts: 40
fernando is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Java application to connect to a database coco Database 3 09-18-2008 05:07 PM
making a count down timer using java saytri New To Java 3 12-29-2007 11:49 PM
code for making a java swing program a demo verson fakhruddin AWT / Swing 1 11-27-2007 10:54 PM
Connect Java application to photo editor syellows Advanced Java 1 11-21-2007 02:09 AM
Making a Java web calendar toby Enterprise JavaBeans 1 08-07-2007 08:05 AM


All times are GMT +3. The time now is 11:39 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org