September 03, 2010, 10:56:19 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: help needed with program  (Read 2743 times)
0 Members and 1 Guest are viewing this topic.
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 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 friendly community for software developers and students that want to learn Java!
« on: March 25, 2008, 12:10:27 PM »

 Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 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
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

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

Well, show me the relevant code
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
tikibobby
Member
*

Reputation: 0
Offline Offline
Posts: 10
Referrals: 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
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

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

I just made some changes so it should work now
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net/forum :: A friendly community for software developers and students that want to learn Java!
   

Your Ad Here
 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.214 seconds with 37 queries.

Google visited last this page August 30, 2010, 11:16:21 PM