| View previous topic :: View next topic |
| Author |
Message |
yoni0505 Expert Cheater
Reputation: 0
Joined: 08 Apr 2008 Posts: 110 Location: Israel
|
Posted: Mon Aug 18, 2008 9:34 am Post subject: [release] random number game v1.5 |
|
|
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!
_________________
"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 |
|
 |
DoomsDay Grandmaster Cheater
Reputation: 0
Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
|
Posted: Mon Aug 18, 2008 10:51 am Post subject: |
|
|
Tip: use title to change the window's caption. | Code: | | title Random number generator |
|
|
| Back to top |
|
 |
yoni0505 Expert Cheater
Reputation: 0
Joined: 08 Apr 2008 Posts: 110 Location: Israel
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Tue Aug 19, 2008 12:34 pm Post subject: |
|
|
Is this using srand(time()) to get a randome number?
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
yoni0505 Expert Cheater
Reputation: 0
Joined: 08 Apr 2008 Posts: 110 Location: Israel
|
Posted: Tue Aug 19, 2008 4:48 pm Post subject: |
|
|
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 |
|
 |
h4cks 4 FuN Cheater
Reputation: 0
Joined: 13 Aug 2008 Posts: 43
|
Posted: Sun Aug 24, 2008 9:37 pm Post subject: |
|
|
thats your first??
i may suck at programming but that blows my mind
|
|
| Back to top |
|
 |
aminem How do I cheat?
Reputation: 0
Joined: 19 Jul 2008 Posts: 0 Location: Evrywhere
|
Posted: Thu Jan 15, 2009 10:21 am Post subject: |
|
|
| 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!  |
U will give us HUMMUS are u a middle eastren ARAB ?
|
|
| Back to top |
|
 |
|