Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming now.

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Class length: 24 weeks. Start anytime.

Creator: duallain

Status: Established

Join this class!

ps10: error in GUI game?

I've made it thru Problem 4 in ps10, passing all the basic tests in ps10_test.py. It appears that ps10_gui.py launches properly - I get a dialog box requesting selection of a game mode (Solo Game, vs. Computer, vs. Human). Yet when I select any of these options I get a traceback that terminates with "AttributeError: 'HumanPlayer' object has no attribute 'IdNum'". Did I miss something in the assignment? I expected the GUI game to initialize IdNum.

g

geoB
1 year ago

Reply


Problem solved!

[edit: I've decided that the errors were intentional - a learning exercise in debugging. So I've removed my solution. Don't want to interfere with the learning process.]

g

geoB
1 year ago

Reply

* Markdown Cheatsheet:

Link:
[clickable text](http://www.example.com)

New Paragraph:
Hit enter twice

Main heading:
# Main Heading Text

Sub-heading:
## Sub-heading Text

List:
* item 1
* item 2
* item 3

Italics:
*italicized text*

Bold:
**bold text**

YouTube:
URL (http://www.youtube.com/watch?v=Ui4AYPcRkYE) turns into embed code

Full Markdown reference