UW Home     CSE Home   Announcements    Message Board    Contact Info 

 
 

Assignments

  • Assignment #8 (Critter Safari) --
    Due electronically Wednesday, December 6, 9:00pm.  Turn in here.
  • Specification: hw8-critter_safari.pdf
    Required files:     Critter.java
    CritterGui.java
    CritterInfo.java
    CritterMain.java
    CritterModel.java
    CritterPanel.java
    Stone.java

    hw8-critter_safari.zip (all of the above .java files in a ZIP archive)
     

    Sample Solution: hw8-critter_safari.jar
     
    Tournament Files:
    (OPTIONAL)
    hw8-critter_tournament.zip

    (Updated 2:00pm, Sunday Dec 10 to include Load from Web feature)

    • Top 16 overall wolves: Section A, Section F (on-time wolves only)
    • In-class tournament results: Section A, Section F
    • Tournament rematch results: tournament_rematch.txt
      (results of re-running a 1-on-1 between every possible pair of wolves from both sections combined; includes wolves turned in late up through Sunday 11:59pm)

    • (The wolves have been renamed to protect your privacy. If you want to know your wolf's number (and weren't in the top-16 standings and therefore can't deduce it), please email Marty Stepp. If a lot of people end up emailing to ask for their wolf number, we may just mass-email everyone their wolf number individually, but we'll do it on a by-request basis for now.)

    The above optional hw8_critter_tournament.zip file contains new versions of the provided files, that are now network-enabled to allow you to send your Wolf class to a neighboring computer to hold a 1-on-1 tournament with that person. This way you can test your Wolf to see how it will do in a tournmaent setting. If you want to test this out, download the above ZIP file and extract its contents, overwriting the previous versions.

    To fight against another student's Wolf, you must be on two computers that can see each other over a network (such as two IPL computers or two dorm computers). Run the critter simulation (tournament version) on both computers. One computer (the "sender") will send its Wolf to the other (the "receiver"). On the sender computer, click the button on the right edge of the window labeled Wolf. A box will appear that asks you for the name or IP address of the computer to connect to. If you don't know the computer's name or IP address, you can often find it by loading a terminal window or DOS prompt on that computer and typing the following command:

    ipconfig
    

    If it sent correctly, the receiver computer will see a popup window asking if it wants to add the new Wolf to the simulator world. Choose how many Wolves you'd like and press OK. The wolves should appear on your screen. Then press Go to run your one-on-one tournament!

    This is new code and may have a few bugs. Direct any emails about bugs or problems to Marty Stepp.

    To accept incoming connections on your computer or laptop, you may have to set an exception in your computer's firewall. To do so in Windows, click Settings, Control Panel, Windows Firewall. Click the Exceptions tab. Click the Add Port... button. Enter the following information:

    Name: Critters (name can be anything you like)
    Port number: 5142
    TCP

    Then click OK until done.

    NOTE: These files have been tested on DrJava but may not work on TextPad or some other environments. On TextPad you'll probably get the following error:

    package com.sun.tools.javac does not exist







 



Homework Submission Policy

All students are responsible for knowing the homework submission policy

Information on the course policies on academic integrity and collaboration can be found on the syllabus page.