Project Structure
Below is a list of all the files you will see in the proj02-Code.zip
.
This project includes several files, but your changes will be made only to cats.py
and utils.py
.
cats
|-gui_files # A directory of various things used by the web gui.
|-tests # Your local `ok` tests for each problem.
|-data
| |-sample_paragraphs.txt # A file containing text samples to be typed.
| |-common_words.txt # A file containing common English words in order of frequency.
| `-words.txt # A file containing many more English words in order of frequency.
|-cats.py # The typing test logic.
|-gui.py # A web server for the web-based graphical user interface (GUI).
|-ucb.py # Utility functions for CS 61A projects.
`-utils.py # Utility functions for interacting with files and strings.
作业提示(怕你们看不懂英文):
- 先读题,再写代码。
- 部分题目提供了初始代码,如果你不想用可以直接删除,你也可以自己定义新的函数。
- 不要修改作业没有提到的函数或文件,否则你的分数可能受到影响(别问为什么OJ上没分数了)。
- 你应该在完成作业的过程中不断测试你的代码的正确性。但是不要每写一行就测试,给自己足够的思考问题的时间。
When students in the past have tried to implement the functions without thoroughly reading the problem description, they’ve often run into issues. 😱 Read each description thoroughly before starting to code.
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, do not modify any other functions or edit any files not listed above. 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.