Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Chess game help

  1. #1
    Member
    Join Date
    Jan 2011
    Location
    Phoenix
    Posts
    49
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Cool Chess game help

    Hey,

    I am trying to make a chess game (just two players, no computer player just yet) and dont really know where to start. I was thinking a main class to call the other classes, a board class to make the board, a pieces class to make the pieces, and possibly a logic class for the logic of the game.

    Again, I dont really know where to start, any suggestions?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,818
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: Chess game help

    Start with the GUI for the board.

  3. #3
    Member
    Join Date
    Jan 2011
    Location
    Phoenix
    Posts
    49
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default Re: Chess game help

    how so? should I do grid layout and just add (I think) 64 squares of black or brown and white? Secondly would I implement an actionListener to this or would I do that for the pieces class?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,818
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: Chess game help

    What makes sense? How would you use an ActionListener? What class supports ActionListeners?
    What object would you want to know if it had been clicked on?

Similar Threads

  1. Chess Board GUI full of buttons
    By falkowa42 in forum AWT / Java Swing
    Replies: 2
    Last Post: September 19th, 2011, 08:07 AM
  2. Newbeginner - Something wrong with my GUI chess pattern
    By JavaN00b in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 5th, 2011, 03:58 PM
  3. checking for draw by repetition in chess app
    By aisthesis in forum Algorithms & Recursion
    Replies: 0
    Last Post: February 16th, 2011, 02:40 AM
  4. Chess Problem
    By pmg in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 10th, 2011, 12:07 PM
  5. Simple Chess program
    By x3rubiachica3x in forum What's Wrong With My Code?
    Replies: 23
    Last Post: September 22nd, 2010, 12:12 PM