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. The Lounge
  3. Game Time :)

Game Time :)

Scheduled Pinned Locked Moved The Lounge
comgame-devtutorial
4 Posts 3 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.
  • R Offline
    R Offline
    Raj Lal
    wrote on last edited by
    #1

    You and me decide to play a game. Starting with me, we placed a "+" or "-" sign in front of any number from 1 to 20 1, 2, 3...18, 19, 20 After all 20 numbers have been signed, I will pay* you in dollars, Math.Abs(value of the sum) So you have to tell me the best strategy to make the maximum amount of money when the game ends

    example i put a "+ sign before 3
    1, 2, 3...18, 19, 20
    becomes
    1, 2, +3...18, 19, 20
    then its your chance you put a minus sign before say 15
    1, 2, +3...18, 19, 20
    becomes
    1, 2, +3..-15, 16, 17, 18, 19, 20
    again its my chance
    And so on...

    So guys if you want your name in the print, here is your chance :) * disclaimer: No actual money involved, Come on be a sport --- My first article^

    R R 2 Replies Last reply
    0
    • R Raj Lal

      You and me decide to play a game. Starting with me, we placed a "+" or "-" sign in front of any number from 1 to 20 1, 2, 3...18, 19, 20 After all 20 numbers have been signed, I will pay* you in dollars, Math.Abs(value of the sum) So you have to tell me the best strategy to make the maximum amount of money when the game ends

      example i put a "+ sign before 3
      1, 2, 3...18, 19, 20
      becomes
      1, 2, +3...18, 19, 20
      then its your chance you put a minus sign before say 15
      1, 2, +3...18, 19, 20
      becomes
      1, 2, +3..-15, 16, 17, 18, 19, 20
      again its my chance
      And so on...

      So guys if you want your name in the print, here is your chance :) * disclaimer: No actual money involved, Come on be a sport --- My first article^

      R Offline
      R Offline
      Raj Lal
      wrote on last edited by
      #2

      Genius programmers ??? Maths no one ??? I am assuming cpians have laid back and needs no more brain crunching for the week. ok give it a thot in the weekend hint: Max -Min method --- My first article^

      E 1 Reply Last reply
      0
      • R Raj Lal

        You and me decide to play a game. Starting with me, we placed a "+" or "-" sign in front of any number from 1 to 20 1, 2, 3...18, 19, 20 After all 20 numbers have been signed, I will pay* you in dollars, Math.Abs(value of the sum) So you have to tell me the best strategy to make the maximum amount of money when the game ends

        example i put a "+ sign before 3
        1, 2, 3...18, 19, 20
        becomes
        1, 2, +3...18, 19, 20
        then its your chance you put a minus sign before say 15
        1, 2, +3...18, 19, 20
        becomes
        1, 2, +3..-15, 16, 17, 18, 19, 20
        again its my chance
        And so on...

        So guys if you want your name in the print, here is your chance :) * disclaimer: No actual money involved, Come on be a sport --- My first article^

        R Offline
        R Offline
        RandomMonkey
        wrote on last edited by
        #3

        If you go first, just choose a sign and put it in front of '20'. Then, put the same sign on all of your future picks, and always pick the biggest number that hasn't been signed. If you go second, stick to the same sign that the first person used on their first pick, and place it on the highest value available. Then continue using the same sign throughout, again picking the biggest available number on each pick. Pretty boring. I hope you pay me a lot of money to compensate for this boredom.


        _

        I've got a New Age attitude - @#&~ karma!

        DWinLib - A neat little Windows wrapper

        MEdit - A MIDI sequencer

        _

        1 Reply Last reply
        0
        • R Raj Lal

          Genius programmers ??? Maths no one ??? I am assuming cpians have laid back and needs no more brain crunching for the week. ok give it a thot in the weekend hint: Max -Min method --- My first article^

          E Offline
          E Offline
          El Corazon
          wrote on last edited by
          #4

          Quartz... wrote:

          I am assuming cpians have laid back and needs no more brain crunching for the week.

          Thank you, but I have enough math on my hands right now.... _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

          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