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 


[release] random number game v1.5

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
yoni0505
Expert Cheater
Reputation: 0

Joined: 08 Apr 2008
Posts: 110
Location: Israel

PostPosted: Mon Aug 18, 2008 9:34 am    Post subject: [release] random number game v1.5 Reply with quote

UPDATES!
v1.5:
added an option to choose a directory to save the score at
added a credit to me (it became a serious code)

v1.4:
name changed to "random number game"
added an option to save the score
when you find a target the text color changing to light red

v1.3:
fixed the want to start again question
added score

v1.2:
fixed the bug in v1.1

v1.1:
added an option to choose between 1-10 targets
added a title (credit to DoomsDay)


I made a batch game called random number game, the rules are simple, you choose a min random number, max random number, and 1-10 targets
after you choose them all you will see your chance, then press any key to randomize new number

soon as you find one of your targets, the color will chage to red you will get a message that tells you you found your target, how many tries it took you, what was the chance, and what is your score
then ask you if you want to save your score and where
then will ask you if you want to play again

it will be really nice if people will post the score they got, lets see who is lucky!

dont worry it isnt harmful,feel free to look at the code
(i removed the code because he is too long)

TEST YOUR LUCK! Very Happy



The Extension 'zip' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
"There is no knowledge that is not power."


Last edited by yoni0505 on Wed Aug 20, 2008 9:17 am; edited 17 times in total
Back to top
View user's profile Send private message Visit poster's website
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Mon Aug 18, 2008 10:51 am    Post subject: Reply with quote

Tip: use title to change the window's caption.
Code:
title Random number generator
Back to top
View user's profile Send private message
yoni0505
Expert Cheater
Reputation: 0

Joined: 08 Apr 2008
Posts: 110
Location: Israel

PostPosted: Tue Aug 19, 2008 10:13 am    Post subject: Reply with quote

version 1.4 is out, please tell me what do you think and how can i improve it

i will give u hummus! Wink

_________________
"There is no knowledge that is not power."
Back to top
View user's profile Send private message Visit poster's website
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Tue Aug 19, 2008 12:34 pm    Post subject: Reply with quote

Is this using srand(time()) to get a randome number?
_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
yoni0505
Expert Cheater
Reputation: 0

Joined: 08 Apr 2008
Posts: 110
Location: Israel

PostPosted: Tue Aug 19, 2008 4:48 pm    Post subject: Reply with quote

nope, just did set click=%random%

if you put %random% it give a random number between about 1-30000

_________________
"There is no knowledge that is not power."
Back to top
View user's profile Send private message Visit poster's website
h4cks 4 FuN
Cheater
Reputation: 0

Joined: 13 Aug 2008
Posts: 43

PostPosted: Sun Aug 24, 2008 9:37 pm    Post subject: Reply with quote

thats your first??
i may suck at programming but that blows my mind
Back to top
View user's profile Send private message
aminem
How do I cheat?
Reputation: 0

Joined: 19 Jul 2008
Posts: 0
Location: Evrywhere

PostPosted: Thu Jan 15, 2009 10:21 am    Post subject: Reply with quote

yoni0505 wrote:
version 1.4 is out, please tell me what do you think and how can i improve it

i will give u hummus! Wink


U will give us HUMMUS are u a middle eastren ARAB ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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