Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How hard would this be to make/help me code it?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sun May 18, 2008 5:46 pm    Post subject: How hard would this be to make/help me code it? Reply with quote

VB 2008

okay, in math we gotta do these equations using the number 4. You gotta use the number 4, 4 times in an equation, and it has to equal 1...2..3.. etc

For example:

4 + 4 - 4 * 4 = 16

_ + _ + _ + _ = ? <----- has to equal 1..2..3..4..5..6..7..8..9..10..11..12... and you can only use 4's, and must you four 4's.


Is their a way to do this? I sort of have an idea but ive never really programmed anything using "equations" at all. Never even made that "first VB project "(the one where ppl make calculators as their first).

_________________


Last edited by AndrewMan on Sun May 18, 2008 10:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun May 18, 2008 8:36 pm    Post subject: Reply with quote

Most I can see is you just want to make a for loop to loop the numbers and do the math... I assume?

VB6: (Yes I know you are doing .NET but I refuse to touch VB.NET)

Code:
    Dim x As Long
    For x = 1 To 30
        List1.AddItem x & "+" & x & "-" & x & "*" & x & "= " & (x + x - x) * x
    Next x


The return for this would be:

Code:
1+1-1*1= 1
2+2-2*2= 4
3+3-3*3= 9
4+4-4*4= 16
5+5-5*5= 25
6+6-6*6= 36
7+7-7*7= 49
8+8-8*8= 64
9+9-9*9= 81
10+10-10*10= 100
11+11-11*11= 121
12+12-12*12= 144
13+13-13*13= 169
14+14-14*14= 196
15+15-15*15= 225
16+16-16*16= 256
17+17-17*17= 289
18+18-18*18= 324
19+19-19*19= 361
20+20-20*20= 400
21+21-21*21= 441
22+22-22*22= 484
23+23-23*23= 529
24+24-24*24= 576
25+25-25*25= 625
26+26-26*26= 676
27+27-27*27= 729
28+28-28*28= 784
29+29-29*29= 841
30+30-30*30= 900


That what you are talking about?

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Sun May 18, 2008 8:43 pm    Post subject: Reply with quote

Wiccaan wrote:
Most I can see is you just want to make a for loop to loop the numbers and do the math... I assume?

VB6: (Yes I know you are doing .NET but I refuse to touch VB.NET)

Code:
    Dim x As Long
    For x = 1 To 30
        List1.AddItem x & "+" & x & "-" & x & "*" & x & "= " & (x + x - x) * x
    Next x


The return for this would be:

Code:
1+1-1*1= 1
2+2-2*2= 4
3+3-3*3= 9
4+4-4*4= 16
5+5-5*5= 25
6+6-6*6= 36
7+7-7*7= 49
8+8-8*8= 64
9+9-9*9= 81
10+10-10*10= 100
11+11-11*11= 121
12+12-12*12= 144
13+13-13*13= 169
14+14-14*14= 196
15+15-15*15= 225
16+16-16*16= 256
17+17-17*17= 289
18+18-18*18= 324
19+19-19*19= 361
20+20-20*20= 400
21+21-21*21= 441
22+22-22*22= 484
23+23-23*23= 529
24+24-24*24= 576
25+25-25*25= 625
26+26-26*26= 676
27+27-27*27= 729
28+28-28*28= 784
29+29-29*29= 841
30+30-30*30= 900


That what you are talking about?

LOL @ *+*-***=* why add and sub the same number?
Just skip it.
like
"4+4-4*4=16" = "4*4=16"
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun May 18, 2008 8:44 pm    Post subject: Reply with quote

GMZorita wrote:
LOL @ *+*-***=* why add and sub the same number?
Just skip it.


... Did you even read the first post?

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Sun May 18, 2008 8:52 pm    Post subject: Reply with quote

Wiccaan wrote:
GMZorita wrote:
LOL @ *+*-***=* why add and sub the same number?
Just skip it.


... Did you even read the first post?

Tryed but the idea wasnt very clear to me so i didnt understanded it at all :(
Its hella confusing o.o

Btw if you need to do 4*4*4*4=1-30
* meaning anything
them you wont be able to do 1-3-5-7-9-11-13-15-17-19-21-23-25-27-29 o.o


Last edited by GMZorita on Sun May 18, 2008 9:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Sun May 18, 2008 9:00 pm    Post subject: Reply with quote

Brute it, the computer will take less time than you will need to figure it out.
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sun May 18, 2008 10:55 pm    Post subject: Reply with quote

no i mean like you can only use the number 4, and you gotta make a bunch of equations that equal to 0-20

so like 4+4+4+4 = 16

you can only use the 4's 4 times.

sorta confusing..

_________________
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Sun May 18, 2008 11:00 pm    Post subject: Reply with quote

So you have to use the number 4 four times in different equations to make the numbers 1-30?
like 4+4+4+4 = 16, 4+4+4-4 = 8?
If that's what you mean, you'd want to go through all the possible equations and then see which ones add up to 30 or lower.

Quote:
"4+4-4*4=16" = "4*4=16"

lol, PEMDAS

_________________
Back to top
View user's profile Send private message
goldengold
Grandmaster Cheater Supreme
Reputation: -1

Joined: 11 Nov 2006
Posts: 1841
Location: -.-

PostPosted: Mon May 19, 2008 12:18 am    Post subject: Reply with quote

So you will have to use Negative 4's aswell? seeing at you want it to equal 0-20?
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Mon May 19, 2008 5:02 am    Post subject: Reply with quote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4 / 4 - 4 = -16
4 - 4 + 4 * 4 = 16
4 - 4 + 4 / 4 = 1
4 - 4 + 4 + 4 = 8
4 - 4 + 4 - 4 = 0
4 - 4 - 4 * 4 = -16
4 - 4 - 4 / 4 = -1
4 - 4 - 4 + 4 = 0
4 - 4 - 4 - 4 = -8
64 Equations
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon May 19, 2008 5:40 pm    Post subject: Reply with quote

Zand wrote:
Ok I tried this in C++ - result

Code:

4 * 4 * 4 * 4 = 256
4 * 4 * 4 / 4 = 16
4 * 4 * 4 + 4 = 68
4 * 4 * 4 - 4 = 60
4 * 4 / 4 * 4 = 16
4 * 4 / 4 / 4 = 1
4 * 4 / 4 + 4 = 8
4 * 4 / 4 - 4 = 0
4 * 4 + 4 * 4 = 0
4 * 4 + 4 / 4 = 0
4 * 4 + 4 + 4 = 24
4 * 4 + 4 - 4 = 16
4 * 4 - 4 * 4 = 0
4 * 4 - 4 / 4 = 0
4 * 4 - 4 + 4 = 16
4 * 4 - 4 - 4 = 8
4 / 4 * 4 * 4 = 16
4 / 4 * 4 / 4 = 1
4 / 4 * 4 + 4 = 8
4 / 4 * 4 - 4 = 0
4 / 4 / 4 * 4 = 1
4 / 4 / 4 / 4 = 0.0625
4 / 4 / 4 + 4 = 4.25
4 / 4 / 4 - 4 = -3.75
4 / 4 + 4 * 4 = 0
4 / 4 + 4 / 4 = 0
4 / 4 + 4 + 4 = 9
4 / 4 + 4 - 4 = 1
4 / 4 - 4 * 4 = 0
4 / 4 - 4 / 4 = 0
4 / 4 - 4 + 4 = 1
4 / 4 - 4 - 4 = -7
4 + 4 * 4 * 4 = 68
4 + 4 * 4 / 4 = 8
4 + 4 * 4 + 4 = 24
4 + 4 * 4 - 4 = 16
4 + 4 / 4 * 4 = 8
4 + 4 / 4 / 4 = 4.25
4 + 4 / 4 + 4 = 9
4 + 4 / 4 - 4 = 1
4 + 4 + 4 * 4 = 24
4 + 4 + 4 / 4 = 9
4 + 4 + 4 + 4 = 16
4 + 4 + 4 - 4 = 8
4 + 4 - 4 * 4 = -8
4 + 4 - 4 / 4 = 7
4 + 4 - 4 + 4 = 8
4 + 4 - 4 - 4 = 0
4 - 4 * 4 * 4 = -60
4 - 4 * 4 / 4 = 0
4 - 4 * 4 + 4 = -8
4 - 4 * 4 - 4 = -16
4 - 4 / 4 * 4 = 0
4 - 4 / 4 / 4 = 3.75
4 - 4 / 4 + 4 = -8
4 - 4 / 4 - 4 = -16
4 - 4 + 4 * 4 = 16
4 - 4 + 4 / 4 = 1
4 - 4 + 4 + 4 = 8
4 - 4 + 4 - 4 = 0
4 - 4 - 4 * 4 = -16
4 - 4 - 4 / 4 = -1
4 - 4 - 4 + 4 = 0
4 - 4 - 4 - 4 = -8
64 Equations


Basically what I want.. now how would I code that in .NET?

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites