How can I solve 24 Games

Get help using Construct 2

Post » Sun Jun 09, 2013 3:50 am

I've try to make 24 games by using C2
like 3, 4, 5, 6 solve (5-(4-3))*6 = 24

now I just use Random 4 number and Then swap all 4 number

Then

((ab)c)d
(a(bc))d
a((bc)d)
a(b(cd))
(ab)(cd)

but I calculate if I use there these step I have to type about 800 - 900 line it's too much

can any body help me to solve these problem

my capX files

https://www.dropbox.com/s/05ouu61qyb914iq/Great24Game.capx
B
4
S
1
Posts: 16
Reputation: 1,014

Post » Tue Jun 11, 2013 6:01 pm

You could use a for loop to cycle through the iterations. That should reduce your lines of code by at least ten-fold.
B
21
S
8
G
5
Posts: 89
Reputation: 6,017


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests