|
|
|
The Perl Game 21 |
| Home The Perl Game 21 Calendar Vulnerabilities/Exploits: |
You just used Our Program 21. It was created using the Perl Programming Language. We had many Difficulties but in the end it all worked out. The Program is started using an MS-DOS Batch File that we created. The Batch file looks like this:
@ECHO OFF
cd C:\Program Files\Internet Explorer\
This basically says is not to show all the commands that go through but to say "Welcome to the 2002 Tech Fair! This is our Perl Program Called 21. Have Fun!" Then to pause and wait for you to hit the Enter Key. Once you hit the Enter Key it runs the actual program 21. Which looks like this :< P>
#!usr/bin/local/perl -w
This just tells the computer to pick a random number between 1 and 11 then see if you want another number. When you hit 1 it grabs another number and then adds them up to see if they equal 21. If they do equal 21 than the computer says that you won! After all of that is done it to go to internet explorer and open our website Desert Code to this page, which is the card-games home page.
Afterwards it says "Thank You For Playing!" then it is done.
This Web-page was created using SSI's (Server-Side includes) which pulls multiple files (The table of contents, the spinning clock (which was made in JavaScript), and the main text together inside the server before you see it!) to create one page.
|