Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need an algorithm?

Need an algorithm?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongame-devalgorithmslounge
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 5495012
    wrote on last edited by
    #1

    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!

    L D 2 Replies Last reply
    0
    • U User 5495012

      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!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      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

      U CPalliniC 2 Replies Last reply
      0
      • L 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

        U Offline
        U Offline
        User 5495012
        wrote on last edited by
        #3

        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!!

        1 Reply Last reply
        0
        • U User 5495012

          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!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • L 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

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            :-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]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups