CS 101 (Spring 1999)
Programming Contest

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:

However

Goals and Benefits:

All contestants submitting qualified entries will...

Directions:

  1. 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.

  2. 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 the GameCanvas class instead of the standard CS101Canvas. GameCanvas is quite suitable for extension to obtain your CS101CanvasGrid.

  3. 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 will create. 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.

  4. 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.

  5. 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.

  6. 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 convenience.

  7. 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.

    To 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 bookmark.

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.


Contest Rules:

  1. Only students currently enrolled in CS101 may enter the contest.

  2. Employees of CS101, their dependents, and their fourth-cousins, twice removed are ineligible.

  3. 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.)

  4. All entries must execute properly. If the game doesn't work, the entry will be disqualified.

  5. 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.

  6. All entries must be accessible on the web. To do this, copy your Lab11 folder and all of its contents into your .www-docs directory. Then, you need to set the permissions so that the appropriate folders and files are world-readable. (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.

    ~cs101/setpermissions
    

    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.

  7. 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.

  8. Stealing other people's code, images, or sounds is strictly prohibited. All submissions must be your own work, except for the code we have provided for you. Substantial penalties, beyond disqualification from the contest, are involved.

  9. All entries must be received by 2:00 pm on Wednesday, 28 April 1999. To submit your entry, send an email message to cs101@cec.wustl.edu. The subject of your message should be "Contest Entry" and your message should contain two lines:
    1. your name, as it shows up in our records, and
    2. the complete URL for accessing your game.
    For example,

    Subject: Contest Entry
    Ron Cytron
    http://www.cec.wustl.edu/~cytron/Lab11/Tetris.html
    
    We are not responsible for lost, delayed or misdirected email.

  10. 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