Need a simple script

Discussion in 'Programming General' started by sheymyster, Nov 20, 2011.

Need a simple script
  1. Unread #1 - Nov 20, 2011 at 3:32 AM
  2. sheymyster
    Joined:
    Jul 1, 2010
    Posts:
    1,549
    Referrals:
    1
    Sythe Gold:
    61

    sheymyster Guru
    $5 USD Donor New

    Need a simple script

    Ok, so messing around with a new game that's in alpha testing, but it's got a minigame and I want to see what it's payout ratios are if someone were to get the most out of each round. The parameters of the game are explained below.

    A number of random objects are spawned upon "playing" the minigame. These objects can have varying shapes and colors. The point of the minigame is to group up objects according to 4 different rules, each rewarding score.

    If you group 3 objects all different shape and same color you get score
    If you group 3 objects all different shape and different color you get score
    If you group 3 objects all same shape and same color you get score
    If you group 3 objects all same shape and different color you get score

    THE PROGRAM I NEED
    Simply put, you can "reuse" objects so I just need a program that can take two input parameters. I input each object by typing or selecting its shape and color. The program runs all possible combinations of 3 selected objects. It omits repeated selections and if possible only shows me the selections that would reward score. This way, I could test a lot of plays very quickly by inputting the shapes/colors and getting all possible scored selections. Then selecting those, ending the minigame, and seeing the overall average score.


    I'm not big into programming myself so I have no idea how simple or hard this would be to do. I don't think it could be too hard, but again I'm clueless. I know the math behind it but definitly not the code so let me know what a script like this will run me BEFORE making it please so I can decide if I can afford it.

    ALSO, this doesn't need to be run IN the game or anything, I will just be minimizing the screen to input the shapes/colors, writing down the score-able combinations and then inputting them manually, so I don't care if the program runs in microsoft paint, if it works I'm fine with it, LOL. But I have a PC not a MAC if that makes a difference, thanks guys!!!!
     
  3. Unread #2 - Nov 21, 2011 at 4:21 PM
  4. sp for real
    Joined:
    Nov 17, 2011
    Posts:
    75
    Referrals:
    0
    Sythe Gold:
    0

    sp for real Member

    Need a simple script

    Ok, this is a type of problem (or question) that we would find in a discussion of econometrics in relation to rationalizing a given situation of an event (or game), or in a discussion of metaphysics in relation to rationalizing a given apparatus of the time (or space) of an object at a particular moment. Either way, to ask this on the programming forums was a great place to start.


    With any type of measurement there is set of rules or parameters which provides the framework of comprehension. This is called Logic.

    Let x = result

    The first thing to do here is to equate the given function of (x), F(x), to its framework of comprehension.

    In the statements from the original post, we we're given the subjective form of x ::

    YIELD TO;

    N = Total # of "OBJECTS SPAWNED"

    R{

    R1 = # SHAPE 1, COLOR 1

    R2 = # of SHAPE 1, COLOR 2

    R3 = # of SHAPE 1, COLOR 3

    R4 = # SHAPE 2, COLOR 1

    R5 = # of SHAPE 2, COLOR 2

    R6 = # of SHAPE 2, COLOR 3

    R7 = # SHAPE 3, COLOR 1

    R8 = # of SHAPE 3, COLOR 2

    R9 = # of SHAPE 3, COLOR 3

    }

    [note you did not specify on the # of colors or # of shapes, logically, this application will assume 3 x 3 = net combination of initial inquires, unless specified]


    B{

    B1 = # of rule 1 possible (3 objects, different shape, same color)

    B2 = # of rule 2 possible (3 objects, different shape, different color)

    B3 = # of rule 3 possible (3 objects, same shape, same color)

    B4 = # of rule 4 possible (3 objects, same shape, different color)

    }

    ----------------------------------

    TO BE CONTINUED> I HAVE A LIFE TO GET BACK TO > BUT I'LL RETURN...

    basically, i'm just stating the logic to help you understand how to do this (i think this is a good topic to be discussed).. it could be written in TONS OF LANUAGES, but you never specified on which one... update your post a little before i get back...... lol enjoy
     
  5. Unread #3 - Dec 4, 2011 at 3:17 PM
  6. sp for real
    Joined:
    Nov 17, 2011
    Posts:
    75
    Referrals:
    0
    Sythe Gold:
    0

    sp for real Member

    Need a simple script

    I'm glad no-one has stepped up to continue the discussion...

    And Sheymyster you still haven't updated your post with the vital missing information.!
     
< Ahk | Ruby on Rails >

Users viewing this thread
1 guest


 
 
Adblock breaks this site