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:20240310T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20241103T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20240730T180000
DTEND;TZID=America/Los_Angeles:20240730T190000
DTSTAMP:20260506T111839
CREATED:20240731T033635Z
LAST-MODIFIED:20240731T040048Z
UID:26213-1722362400-1722366000@www.ayclogic.com
SUMMARY:6 PM – Python OOP – Darin
DESCRIPTION:What We Did Today:\n\nContinued monster inheritance project\nLearnt about the concept of inheritance (we haven’t applied it yet)\n\nHomework:\nContinue in MonsterSystem.py and upload the file into the google drive when you are finished. \nimplement the else condition\, and start by getting the Monster object from the dictionary with the key from variable “monster”\, and then getting input from shell with the menu \nThis is what we have so far for the play method: \n\n\ndef play(self):\n    self.player_name = input("Enter player name: ")\n    self.player_health = int(input("Enter player health: "))\n\n    print(f"\nWelcome to the AYCLOGIC adventure game\, {self.player_name}")\n\n    while True:\n        print(f"{self.player_name}\, you have {self.player_health} health remaining.")\n        print("Please choose the monster to fight: ")\n        self.listMonsters()\n        monster = input("Enter the name of the monster to fight: ")\n\n        if monster.lower() not in self.monsters.keys():\n            print(f"{monster} does not exist in the system.")\n        else:\n            # getting the monster object using the key (monster)\n            # print out "What do you want to do with the {monster}"\n            # print out the menu below and get input with the variable named "selection"\n\n            # create new menu called self.attack_menu\n            """\n            1. Magic attack\n            2. Sword attack - 10 to 20 damage\n            Enter your selection:\n            """\nHere is a sample of the output after completing the else condition: \nPlease select one of the following\n1. Add Monster\n2. List all monsters\n3. Play Adventure\nEnter your selection (Enter ‘exit’ to quit): 3\nEnter player name: Darin\nEnter player health: 100 \nWelcome to the AYCLOGIC adventure game\, Darin \nDarin\, you have 100 health remaining.\nPlease choose the monster to fight:\nDRAGON – 100 health remaining\nTROLL – 80 health remaining\nGOBLIN – 20 health remaining\nEnter the name of the monster to fight: dragon \nWhat do you want to do with the Dragon?\n1. Magic attack\n2. Sword attack – 10 to 20 damage\nEnter your selection: 1 \n\n\n\nNotes:\nIf you have any questions\, you can contact me at ddjapri@ayclogic.com
URL:https://www.ayclogic.com/event/6-pm-python-oop-darin-3/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR