[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
Pete's QBASIC Site • Pete, are you going to release a new coding competition? - Page 2
Page 2 of 2

Posted: Sun Dec 23, 2007 7:51 am
by nkk_kan
i know this is not valid...but i tried to squeeze it...lol....it's 239 without spaces :P

Code: Select all

RANDOMIZE TIMER
? "1.rock"
? "2.paper"
? "3.scissors"
INPUT i
a:
c = INT(RND(1) * 3) + 1
IF c = i OR c < 1 GOTO a
SELECT CASE c
CASE 1
    IF i = 3 THEN r = 1
    if i = 2 then r = 2
CASE 2
    IF i = 1 THEN r = 1
    if i = 3 then r = 2
CASE 3
    IF i = 2 THEN r = 1
    if i = 1 then r = 2
END SELECT
IF r = 1 THEN ? "comp won!"
IF r = 2 THEN ? "You Won!"
SLEEP