BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-ORIGINAL-URL:https://www.ayclogic.com
X-WR-CALDESC:Events for American Young Coder
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:20230312T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20231105T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20230627T170000
DTEND;TZID=America/Los_Angeles:20230627T180000
DTSTAMP:20260425T183232
CREATED:20230628T013841Z
LAST-MODIFIED:20230628T013841Z
UID:20412-1687885200-1687888800@www.ayclogic.com
SUMMARY:5:00 PM – Python Object Oriented Programming – Sebastian
DESCRIPTION:Today We Did\n\nContinued Monster System program\nAdded new menu items to get the last bit of required user input\nIn case you need anything\, feel free to email me at sebastian@ayclogic.com\n\nHomework\n\nName your homework however you’d like (you may submit your original copy from class)\, please submit by next Monday.\nHomework: Complete the following:\na) At the end of our play() method in the MonsterSystem class\, if the attack_selection was 1 then call magic_attack()\, if it was 2 then call sword_attack() \nb) magic_attack(self\, monster) will get user input while showing the user the magic_attack_menu attribute\, then store it in variable named selection. If selection is 1\, set a variable to a random int from 5-10\, if its 2 then random int 5-10\, if its 3 then random int 5-15\, if its 4 random int 5-8 (from 5 to the specified max value in the menu attribute). \nc) Then by looking at the magic_attack_menu\, you will call the receive_magic_attack() method belonging to the monster which was passed as a parameter to magic_attack()\, giving receive_magic_attack the random number and the corresponding magic type (fire/water/earth/wind) as parameters. \nd) Finally\, add a case to see if the user gave an invalid selection (since you already checked for 1\,2\,3\,4\, we can simplify this). If so\, print an error message and ‘return’ from the method
URL:https://www.ayclogic.com/event/500-pm-python-object-oriented-programming-sebastian-11/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR