BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:American Young Coder
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:20240310T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20241103T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20241110T200000
DTEND;TZID=America/Los_Angeles:20241110T210000
DTSTAMP:20260520T044541
CREATED:20241111T111426Z
LAST-MODIFIED:20241111T111426Z
UID:27355-1731268800-1731272400@www.ayclogic.com
SUMMARY:8 PM - Python OOP - Joel
DESCRIPTION:Today we did:\n\nWe finished the ShoppingCartApplication2.\n\nHomework:\n\nMake a new file called monster.py and make a monster class with these attributes: species\, health\, max_attack. As always make the constructor. Then\, create a method inside the class called ‘get_info’. It will return the string f”{self.species} – {self.health} health – {self.max_attack} max attack”.\nCreate a new file called Nov10_monster_system. Create a MonsterSystem class and create the constructor. Inside the constructor\, make a variable called main_menu with this menu:\nPlease select one of the following\n1. Add Monster\n2. List all monsters\n3. Play Adventure\nEnter your selection (Enter 'exit' to quit):\nStill in the constructor\, create an empty dictionary called monster_dictionary.\nCreate an application loop\, and just like today’s project\, make a MonsterSystem object\, and use that to call the application loop.\nInside the application loop\, make a while True loop\, and take the input selection from the user based on the main_menu. If the selection is ‘exit’\, break out of the loop. If it is equal to “1”\, make a new method called add_monster and call it. If it is equal to “2”\, make a new method called list_all_monsters and call it. If it is equal to “3”\, make a method called play_adventure_game and call it. The methods can be empty for now.\nIf you have any questions\, feel free to email me at joel@ayclogic.com
URL:https://www.ayclogic.com/event/8-pm-python-oop-joel-4/
END:VEVENT
END:VCALENDAR