|
| Author |
Message |
-á-n-t-z- Newbie

Joined: 22 Feb 2004 Posts: 17
   
|
Posted: Sun Feb 22, 2004 10:31 pm Post subject: |
|
|
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

Joined: 12 Nov 2003 Posts: 624
    
|
Posted: Sun Feb 22, 2004 10:33 pm Post subject: |
|
|
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

Joined: 22 Feb 2004 Posts: 17
   
|
Posted: Sun Feb 22, 2004 10:41 pm Post subject: |
|
|
| Well can you help me |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Sun Feb 22, 2004 10:43 pm Post subject: |
|
|
| 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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Feb 22, 2004 11:38 pm Post subject: |
|
|
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

Joined: 12 Nov 2003 Posts: 624
    
|
Posted: Sun Feb 22, 2004 11:47 pm Post subject: |
|
|
thnx for the correction...I actually thought my code would do between 0 and 8  _________________ Anthony Arslan
@-Squared Enterprises
MacroHard Corporation |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Mon Feb 23, 2004 11:26 pm Post subject: |
|
|
Lol I ALWAYS make that mistake. So annoyin'.  |
|
| Back to top |
|
 |
|