User Control Panel
Advertisements

HELP US, HELP YOU!

A game again

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
-á-n-t-z-
Newbie
Newbie


Joined: 22 Feb 2004
Posts: 17

Reputation: 27.2Reputation: 27.2Reputation: 27.2

PostPosted: Sun Feb 22, 2004 10:31 pm    Post subject: Reply with quote

The game i had it inda sad but if you could add on it would be good, you would start off with the tictactoe.pl and the type the numba to try and win like this:

1 | 2 | 3 Under one of the numbers is a prize
--------- Can you find it?
4 | 5 | 6 Type the number you choose
---------
7 | 8 | 9



1 | 2 | X You guessed '3' you were wrong
---------
4 | 5 | 6
---------
7 | 8 | 9



1 | 2 | 3
---------
4 | 5 | 6 The correct answer was 7
---------
X | 8 | 9
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Sun Feb 22, 2004 10:33 pm    Post subject: Reply with quote

1. Why did you double post? (At least this time in the right forum)
2. Like I said in your last topic, its a simple guess game. And like Ramses said, you don't even have to display the tictactoe board.

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
-á-n-t-z-
Newbie
Newbie


Joined: 22 Feb 2004
Posts: 17

Reputation: 27.2Reputation: 27.2Reputation: 27.2

PostPosted: Sun Feb 22, 2004 10:41 pm    Post subject: Reply with quote

Well can you help me
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Sun Feb 22, 2004 10:43 pm    Post subject: Reply with quote

We did.. Go back to your first post and take a look. Double posting is just annoying and not needed. <_<
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Feb 22, 2004 11:38 pm    Post subject: Reply with quote

Well, as I was about to say in the other topic (but it was closed), they had an int(rand(9)) thing, but that would pick a random number between 0 and 8, which wouldn't be what you wanted.

This code will get a random number between 1 and 9:
Code:
my $right = int(rand(9)) + 1;

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Sun Feb 22, 2004 11:47 pm    Post subject: Reply with quote

thnx for the correction...I actually thought my code would do between 0 and 8 Very Happy
_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Mon Feb 23, 2004 11:26 pm    Post subject: Reply with quote

Lol I ALWAYS make that mistake. So annoyin'. Razz
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group