Project Logistics
When you finish the project, you'll have implemented a significant part of this game yourself.
To get started, download all of the project code as a zip archive.
Below is a list of all the files you will see in the archive once unzipped.
For the project, you'll only be making changes to hog.py
.
hog.py
: A starter implementation of Hogdice.py
: Functions for rolling dicehog_gui.py
: A graphical user interface (GUI) for Hogok
: The autogradertests
: A directory of tests used by okgui_files
: A directory of various things used by the web GUI
You may notice some files other than the ones listed above too -- those are needed for making the autograder and portions of the GUI work.
Please do not modify any files other than hog.py
.
You will turn in the following files:
hog.py
You do not need to modify or turn in any other files to complete the project. To submit the project, run the following command:
$ python ok --submit
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 autograder tests. Also, please do not change any function signatures (names, argument order, or number of arguments).
Throughout this project, you should be testing the correctness of your code. It is good practice to test often, so that it is easy to isolate any problems. However, you should not be testing too often, to allow yourself time to think through problems.
You can debug your code by printing messages or using a debugger.
- To print a debug message, use
print('DEBUG:', ...)
. - To use the integrated debugger in VS Code, refer to the debugging tutorial in week 5.