Need an algorithm?
-
I need to write an algorithm for a game. I have a list of questions a list of answers and another list of clues. I need an algorithm to create random combinations of questions and clues, once the question is attempted the corresponding clue and answer becomes void and should not occur again for the next question. I hope iam clear with the requirement!
-
I need to write an algorithm for a game. I have a list of questions a list of answers and another list of clues. I need an algorithm to create random combinations of questions and clues, once the question is attempted the corresponding clue and answer becomes void and should not occur again for the next question. I hope iam clear with the requirement!
Member 5502879 wrote:
create random combinations of questions and clues
HUH? What good are clues if they are randomly applied to questions? :wtf: Q: Who discovered King Tuts tomb? Clue: The largest body of water in the state of Nebraska is lake Havaclue.
led mike
-
Member 5502879 wrote:
create random combinations of questions and clues
HUH? What good are clues if they are randomly applied to questions? :wtf: Q: Who discovered King Tuts tomb? Clue: The largest body of water in the state of Nebraska is lake Havaclue.
led mike
Ur right , i should have not said random combination of clues. Its just combination of a questions and its corresponding clues. But since this is a multiplayer game by 'random combination' i meant a players screen which is visible to the ones beside him/her should have diff a combination. I hope now the requirement is clear!!
-
I need to write an algorithm for a game. I have a list of questions a list of answers and another list of clues. I need an algorithm to create random combinations of questions and clues, once the question is attempted the corresponding clue and answer becomes void and should not occur again for the next question. I hope iam clear with the requirement!
Member 5502879 wrote:
I need an algorithm to create random combinations...
Can't you use
rand()
?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Member 5502879 wrote:
create random combinations of questions and clues
HUH? What good are clues if they are randomly applied to questions? :wtf: Q: Who discovered King Tuts tomb? Clue: The largest body of water in the state of Nebraska is lake Havaclue.
led mike
:-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]