GAME: make 24

KoreBolteR

Tank
Joined
Oct 8, 2004
Messages
3,724
Reaction score
1
the object of this game is too get the number 24 from four numbers..

so say i chose the numbers: 2, 3, 5 and 9 (can only choose numbers 1-9.. )

i could answer it as ---> 5 x 9 = 45 ----> 45 + 3 = 48 ----> 48 divided by 2 makes 24 :D.



so ill give you the nimbers : 6, 9, 1, 4.. can YOU make 24 out of them?

see which one of you can get the closest...

mods delete this if you think its spam...

EDIT: you have to use all four numbers:)
 
6x4+(1/9)

24.111111

can we use calculus?
6x4x1 + the derivative of 9 = 24
 
9 to the power 0 = 1
1 x 1 = 1
6 x 4 = 24
24 x 1 = 24

I erm...found that zero...on the floor...
 
remember you can only use the number once.

and you can only plus, take-away, times and divide :D
 
It is also called Challenge 24.. I played this game when I was 6 (Currently 16).
 
I left for school right after i posted that
Then in history i realized how to make 24
It bugged me and i missed the rest of the lecture -_-
If i do poorly in there, i blame you :p

And this game is awesome! Do another ^_^
 
Oooh, we should all play with our post count
Since most of them are four digits

Mines hard :/
Try 2494
 
Haha, i found a way for this game to kill even more of my time ^_^
I'm making a program that will allow you to put in the four numbers
Then it'll tell you the best combination to get 24 or close to 24
This could seriously take forever ^_^

If you program, just imagine how tedious this is gunna be
Anyone know how many possible combinations i should be making?
I know its gunna be in the hundreds :/
 
Well, i did it.
I made a program that will give you the answer for any four numbers
Good lord that was hard ^_^
But so worth it.

And only like 600 if/then statements
 
Ikerous said:
Well, i did it.
I made a program that will give you the answer for any four numbers
Good lord that was hard ^_^
But so worth it.

And only like 600 if/then statements
Well, upload it! Unless you are joking :(
 
vegeta897 said:
Well, upload it! Unless you are joking :(
I wouldnt joke about something like that o.<
You guys can beta test it for me ^_^
Its a 50k html file o.o lol
Ill host it in a second and put up the link

http://68.7.70.90:70/

I had to open it in IE for it to work though :/
 
Doesn't work well with two of the same numbers eh? Forgive me if this is against the rules of the game.

Also it appears that two digit numbers appear to mess it up. Again forgive me if I'm wrong.

Nice work though, it's neat.
 
Ikerous said:
I wouldnt joke about something like that o.<
You guys can beta test it for me ^_^
Its a 50k html file o.o lol
Ill host it in a second and put up the link

http://68.7.70.90:70/

I had to open it in IE for it to work though :/
I assume you used Visual Basic? :Such a n00bi3 program.. P
 
vegeta897 said:
Doesn't work well with two of the same numbers eh? Forgive me if this is against the rules of the game.

Also it appears that two digit numbers appear to mess it up. Again forgive me if I'm wrong.

Nice work though, it's neat.
Some sequences are impossible, but if you put in one that should work and it doesnt, PLEASE tell me what it was :p

And yea, the digits have to be from 1-9 (Thats part of the rules though)

Shamrock said:
I assume you used Visual Basic? :Such a n00bi3 program.. P
I did the entire thing in notepad...
(with a lil help from ms word.. dont ask -_-)

But Ms word quotation marks != notepad's quotation marks -_-
 
Hey! :D

There was probably an easier way to do this, if a little more simple-minded. There's always 3 operator slots, and each one has 4 combinations. So if you cycle through it numerically*, it could get done pretty fast.

*: I'm pretty sure there's a formal name for this, but it's what I call it. Here's an example: let's say (arbitrarily) that the order of this number line is +, -, *, /. So your first 3 digit number is +++. Say that doesn't work, you then go to ++-, then ++*, then ++/, then +-+, and so on until you find a combination, or find /// doesn't work (which means no solution).

Oof, God, looking at that code is painful >_~ it'd be easier to make a chart or answer list or something than do all that man, sorry :(

EDIT: Also, with the method I suggested, you'd be able to plug in any value to shoot for, not just 24. Other operators too.
 
Trust me, if i could have thought of an easier way, i would've used it :p
and the problem with the way you mention, is parenthesis and order of operations
Even still, your way would be a lot faster, but i like my way :)
This kept me entertained all night

<3 my new program

And if it gives you an answer like 22, its because thats the cloest to 24 it could get
Which is also a way of winning in the rules (Although i think this part may be a bit buggy)

I'll probably end up moving this to asp so its not a 50k file, and it'll hide the mess :p
 
Ah good catch, didn't think about order of ops. I guess if you were hellbent on doing it that way, you could move the variables all around too, but the running time would go up considerably.

And of course, there's nothing wrong with your way. It does give the right answer, right? :)
 
Maui said:
And of course, there's nothing wrong with your way. It does give the right answer, right? :)
Haha, most of the time ;-) I hope -_-
It worked for one i had no idea how to do

Ooh, and i like the idea about the custom game number...
That'll be a pretty easy change, ill have to make that tomorrow ^_^


http://68.7.70.90:70/test.htm
That has a slightly updated version
It starts with random numbers so you dont have to choose them yourself
And you can change the target number

Added about 100 if/then statements i missed :p
 
Okay, this is the best game ever, why arent we playing?

5, 3, 7, 7

btw, my script is up to ~2,200 lines >< I forgot a few in the original...
 
Ikerous said:
Okay, this is the best game ever, why arent we playing?

5, 3, 7, 7

btw, my script is up to ~2,200 lines >< I forgot a few in the original...
You're script isn't work.. Fix the link..
 
Shamrock said:
You're script isn't work.. Fix the link..
Yea, i turned the server off b/c the old script sucked
And the new one is almost 200k :p
I'll probably re-make it in ASP so its all server side

Heres the link though if you wanna see it
http://68.7.70.90:70

(No cheating though :p)
 
Did u make this coz the presenter of countdown died and you have no number problems to solve?
 
Is every combination possible? I really want to know it before I start :D
 
5377 - reference number

7+7*5/3 = 23.3*repeating*

closest I can get :(
 
Ikerous + Ennui + Shens = Impossible Creature
 
The object of the game is to make 24, Ennui. You stupid spammer.
 
SimonomiS said:
Run! It's Shennuikerous!!!
Aww, don't run! It's as harmless as a fly...

A fly that is 50 feet tall and powered by radiation!
*runs*
 
Ikerous said:
Okay, this is the best game ever, why arent we playing?

5, 3, 7, 7

btw, my script is up to ~2,200 lines >< I forgot a few in the original...

hmm....

3 x 7 = 21

21 - 5 = 16

16 + 7 = 23...

Damnit! im 1 short :(
 
7*7/(5-3) = 24.5

24.5 is closer than 23.3 :p
And you can't get any closer than that

8,6,2,9 (This one is possible)
 
Back
Top