Welcome, Guest. Please login or register.
Did you miss your activation email?
Your Ad Here
Pages: [1]   Go Down
  Print  
Author Topic: help needed with program  (Read 2278 times)
0 Members and 1 Guest are viewing this topic.
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 0
Activity
0%

Awards
« on: March 25, 2008, 12:10:27 PM »

i am making a program, which will generate a fixtures list, the fixtures list is based on multiple conditions,
there are 6 classes, these 6 classes are divided into 2 houses (yellow and green), and there are four different game types that they will play.
every student must play all four games, but cannot play each game type more than once, also, they cant play anyone from their own house or class, so overall there will be 72 matches, i am currently at 68

i have attached the pages, the matchlist class is where the problem is. i need to initialize something so that if the game type = 1 or 3 then the way the fixtures are generated is reversed, i hope this makes sense, i would be grateful for any help that you can offer.

cheers
Logged
Javaforums.net/forum :: A community for software developers
« on: March 25, 2008, 12:10:27 PM »

 Logged
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2552
Referrals: 12
Activity
14%

WWW Awards
« Reply #1 on: March 25, 2008, 04:13:15 PM »

i am making a program, which will generate a fixtures list, the fixtures list is based on multiple conditions,
there are 6 classes, these 6 classes are divided into 2 houses (yellow and green), and there are four different game types that they will play.
every student must play all four games, but cannot play each game type more than once, also, they cant play anyone from their own house or class, so overall there will be 72 matches, i am currently at 68

i have attached the pages, the matchlist class is where the problem is. i need to initialize something so that if the game type = 1 or 3 then the way the fixtures are generated is reversed, i hope this makes sense, i would be grateful for any help that you can offer.

cheers

Can you post the relevant code that doesn't work ( or you think that need changes) and explain what you mean by 72 matches and you are at 68?
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 0
Activity
0%

Awards
« Reply #2 on: March 26, 2008, 05:00:11 PM »

all the code works, and when you rtun the code, a little error is displayed in the terminal window saying 4 mor matches are required, but the others are displayed in the window. currently there are 68 matches displayed, and i need to get to 72, cheers
Logged
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2552
Referrals: 12
Activity
14%

WWW Awards
« Reply #3 on: March 27, 2008, 12:29:38 PM »

Well, show me the relevant code
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 0
Activity
0%

Awards
« Reply #4 on: March 27, 2008, 04:04:06 PM »

i have attached it to my first post, the problem is in the matchlist class

//edit
didn't realized this was an old topic  nopompom
« Last Edit: June 21, 2009, 10:11:50 AM by HappyFace » Logged
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2552
Referrals: 12
Activity
14%

WWW Awards
« Reply #5 on: June 21, 2009, 10:11:30 AM »

I just made some changes so it should work now
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net/forum :: A community for software developers
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to: