Results 1 to 2 of 2
  1. #1
    zoe is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default 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.

  2. #2
    fernando is offline Member
    Join Date
    Jul 2007
    Rep Power


    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?

Similar Threads

  1. Replies: 3
    Last Post: 09-18-2008, 03:07 PM
  2. making a count down timer using java
    By saytri in forum New To Java
    Replies: 3
    Last Post: 12-29-2007, 09:49 PM
  3. code for making a java swing program a demo verson
    By fakhruddin in forum AWT / Swing
    Replies: 1
    Last Post: 11-27-2007, 08:54 PM
  4. Connect Java application to photo editor
    By syellows in forum Advanced Java
    Replies: 1
    Last Post: 11-21-2007, 12:09 AM
  5. Making a Java web calendar
    By toby in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-07-2007, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts