Whats the best code you've ever written??

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

oh wait.. its here somewhere.. ah in my junk folder.
I'll post just a snippet

Code: Select all

if($u_weapon == "ROCK" && $c_weapon ==  "SCISSORS"){
      print"<b>ROCK</b> crushes SCISSORS... You Win!<p>";
    }
    else if($u_weapon == "PAPER" && $c_weapon ==  "ROCK"){
      print"<b>PAPER</b> covers ROCK... You Win!<p>";
    }
    else if($u_weapon == "SCISSORS" && $c_weapon ==  "PAPER"){
      print"<b>SCISSORS</b> cut PAPER... You Win!<p>";
    }
:wink:


feyd | forgot the

Code: Select all

tags [/color]
Post Reply