1,hog中犯了一个很傻的问题,将泛函数(自己想名字)f (dice=six_sided ),在调用时直接写成了f (six_sided),虽然我知道咋改对,但还是不理解,最后在刷课群的佬的点拨下才真正理解。 2,disc2中的match_k的实现,想了很久都不知道怎么不利用索引和字符串完成,原因就在于我忘记了python中的x**i的用法,x**i...
Hog Cats AntsWeek 11. Lecture :Computer ScienceIt's just an introduction ,but if you are interested ,I suggest you watching or listening it. Some records :There is this notion, i think, that learning happens when you solve the problem. That is completely wrong. Learning happens when you ...
对于project来说,很大的问题在于读不懂题(特别是第一个project hog),加上题目背景和规则的描述又非常长,如果中途做了其他事后回来不太好找到本来的思路。笔者建议project就找整块时间开始一直做,不要有过长的中断,以保证思路的连贯。(当然大佬按照自己的节奏就行,仅供参考)例如,笔者写hog的时候从下午7点开始写,到...
within yourcs61afolder, you have folders separating yourprojects,labassignments, andhomework. The next level is folders that separate different assignments,hw01,lab01,hog, etc., and inside those are the files themselves, including the starter files...
Project 1: The Game of Hog--Problem 9 (2 pt)问题 摘要:函数`roll_dice(num_rolls, dice)`以相同的点数策略`dice()`,但是以多少骰子数量`num_rolls`才能在函数`make_averaged()`获取到较大的平均值。 56 0 0 编辑 阅读 cs61a回顾 摘要:你为什么觉得举步维艰? 104 0 1 编辑 阅读 cs61a-...
master 1Branch0Tags Code Folders and files Name Last commit message Last commit date Latest commit cs50Mu first commit Mar 29, 2016 fa09ec4·Mar 29, 2016 History 2 Commits ants first commit Mar 29, 2016 hog first commit Mar 29, 2016 ...
Project 1: The Game of Hog (2023 Spring) Website Solution 2020 Fall Solution Project 2: Computer Aided Typing Software Tips: If you cannot open the cats_gui.py web browser, you should change DEFAULT_SERVER = "https://cats.cs61a.org" to DEFAULT_SERVER = None, then run the command pyt...
(miniconda3) (base) niko@NIkodeMacBook-Air hog % python3 ok -q 07 === Assignment: Project 1: Hog OK, version v1.18.1 === ~~~
Project 1: The Game of Hog 这个 Project 需要我们完善一个 Hog 游戏,大致就是两个人轮流掷骰子,谁的分数(累计点数)先达到目标点数则获胜,该游戏也具有一些规则,根据玩家掷出的点数与双方的点数触发。 代码均通过 ok,欢迎交流。 Phase 1: Simulator 在第一阶段,我们要为 H… ...
GitHub is where people build software. More than 50 million people use GitHub to discover, fork, and contribute to over 100 million projects.