Note: This document assumes you are making an applet out of your
Lab 11 code. You can earn the 25 points extra credit
on your lab total by making an applet out of any of the following labs:
- The judges will only consider Lab 11
the purposes of the contest.
- You can earn at most 25 points of extra
credit, no matter how many applets you make.
Goals and Benefits:
All contestants submitting qualified entries will...
- get to put a cool applet on the web to show off to their friends and
relatives. ("See what I did in CS101!")
- have a chance to win cool prizes.
- receive a 25 point extra credit bonus on their
as described above.
Once you have your game working the way you like
in the browser, you're ready to put it on the web so that others can play it.
This is described in the contest rules, below.
- Be sure that your Lab 11
game works. If it doesn't work, doing the
rest of these steps won't help any, so you should go back and fix it first.
- If you want to go for prizes and glory, you should add
new features to your game that will impress the
judges--as you know from experience, this is
a group not easily impressed.
Be creative! (Various free images and sounds can be found
on the web.
If you want to use sounds or images, you might consider using
class instead of the standard
GameCanvas is quite suitable for extension to obtain your
- Open the file Tetris.html and read it.
Save this file as source.
This hypertext document is already set up for loading the applet you
There is a space in the file for you list special features of your
applet that you want the contest judges to notice. Be sure to
do this. Otherwise, the judges may miss out on something you wanted them
to see. Also, make sure that your name is on the page, and include a
link to your home page.
- Before you start turning your lab into an applet,
save a backup copy of all your code in another folder,
in case you mess up and need to go back and get something.
- You will have to create a new project for the applet, and in the
field where you choose application vs. applet, choose applet.
Rebuild your new project.
If you try running the applet from within Cafe, Cafe may freeze up.
Instead, after rebuilding the project, you can test your applet in
an actual browser, described in the next step.
- In your web browser (Netscape), go to the file menu and
select "Open Page..." Then click on the "Choose File..." button and
use the dialog box to select Tetris.html in your Lab11 folder.
Once you open it, save a bookmark to the page in your browser for your
- Your game should be playable within the browser.
Sounds will work now, as well.
IMPORTANT NOTE: The browser is likely to cache your game and
may not reload your class files even if you hit the reload button.
Most Netscape implementations will reload the class files if you hold
down the Shift key while clicking reload.
be absolutely sure that you are seeing the results of your changes,
exit the browser and restart it and then reload the page using your
- Only students currently enrolled in CS101 may enter the contest.
- Employees of CS101, their dependents, and their fourth-cousins, twice
- You must have a CEC home page to enter.
(If you don't already have a home page on CEC, you need to go back to Lab 0 and create a home
page. You can skip the part about getting your picture taken.)
- All entries must execute properly. If the game doesn't work,
the entry will be disqualified.
- All entries must contain only "G-rated" material.
Judges will disqualify entries containing inappropriate language or
media content. Disqualified entries will
not receive any of the benefits listed above.
- All entries must be accessible on the web.
To do this,
copy your Lab11 folder and all of its contents
directory. Then, you need to set the permissions
so that the appropriate folders and files
(The .java files should NOT be made world readable.)
We have prepared a script that will set the permissions for you.
To use it, open a telnet session to your UNIX account and type
the following line.
If the script runs successfully, you should see the message "...done" at
the end. If you get error messages, ask a TA for help. If you want,
you can look at the script to see the
unix commands being executed.
- Your home page must have a link to your game
(the URL will be "Lab11/Tetris.html").
Add the link to your home page and test that it works.
- Stealing other people's code, images, or sounds is strictly prohibited.
must be your own work, except for the code we have provided for you.
Substantial penalties, beyond disqualification
from the contest, are involved.
- All entries must be received by 2:00 pm on Wednesday, 28 April 1999.
To submit your entry, send an email message to email@example.com.
The subject of your message should be "Contest Entry" and
your message should contain two lines:
- your name, as it shows up in our records,
- the complete URL for accessing your game.
Subject: Contest Entry
We are not responsible for lost, delayed or misdirected email.
- Entries will be judged by a panel of CS101 TAs
on the basis of quality and originality.
The decisions of the judges are final and will be announced on the
course Web Page. Good Luck!
Last modified 22:39:20 CDT 20 April 1999
by Ron K. Cytron