Project Structure
To get started, download project materials proj03-Code.zip
from our QQ group if you don't have one.
Below is a list of all the files you will see in the proj03-Code.zip
.
You only have to make changes to ants/ants.py
to finish the project.
ants
|-ants.py # The game logic of Ants Vs. SomeBees
|-gui.py # Web-based GUI for Ants Vs. SomeBees
|-ants_gui.py # The original GUI for Ants Vs. SomeBees
|-graphics.py # Utilities for displaying simple two-dimensional animations
|-utils.py # Some functions to facilitate the game interface
|-ucb.py # Utility functions from CS 61A
|-assets # A directory of images and files used by gui.py
|-img # A directory of images used by ants_gui.py
|-ok # The autograder
|-proj03.ok # The ok configuration file
-tests # A directory of tests used by ok
As you may see, we have two version of GUIs in the project.
One is in gui.py
, the other is in ants_gui.py
.
Feel free to choose any one you like.
Note: In this time we enable the
unlock
feature inok
to strength your understanding of the problems.
Suggestion:
For the functions that we ask you to complete, there may be some initial code that we provide. If you would rather not use that code, feel free to delete it and start from scratch. You may also add new function definitions as you see fit.
However, please do not modify any other functions. Doing so may result in your code failing our framework. Also, please do not change any function signatures (names, argument order, or number of arguments).
And, check the given tests when you are confused about how some functions should behave.