talkpython / mastering-pycharm-course

Course demos and handouts for Talk Python's Effective PyCharm course
https://training.talkpython.fm/courses/explore_pycharm/mastering-pycharm-ide
GNU General Public License v2.0
1.12k stars 716 forks source link

"Add method wake_up to Wizard class" is not working #20

Closed leongrin closed 5 years ago

leongrin commented 5 years ago

wake_up method

The instruction below is not working, as you can see on the attached image.

"Notice that wake_up should have some warning about it not existing. Put your cursor on wake_up, press alt-enter, and choose "Add method wake_up to Wizard class"."

mikeckennedy commented 5 years ago

Hi

The problem is you need to indent that hero.wake_up() line. It's not part of the game_loop() method where hero exists at the moment.