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:20250309T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20251102T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20250408T180000
DTEND;TZID=America/Los_Angeles:20250408T190000
DTSTAMP:20260506T043257
CREATED:20250409T031232Z
LAST-MODIFIED:20250409T031232Z
UID:28609-1744135200-1744138800@www.ayclogic.com
SUMMARY:6 PM – Python OOP – Darin
DESCRIPTION:What We Did Today:\n\nContinued the Monster Inheritance project.\nImplemented the start of the attack system.\n\nHomework:\nIn your MonsterSystem project\, do the following\, and upload to google drive when finished: \nComplete the sword attack method\, where you have to get a random amount of damage to attack the monster with. \nAlso implement code for the monster to attack you. You will have to generate a random number from 0 – m.max_attack and reduce the player’s health. \nPrint statements after attacking and after getting attacked. \n\ndef sword_attack(self\, m):\n    # part of hw:\n    # get a random amount of damage from 10-20 using r.randint()\n    damage = 0 # replace this\n    monster = self.monsters[m]\n    monster.get_sword_damage(damage)\n\n    # have the monster attack us with some damage that is random from 0 - monster.max_attack\n    damageFromMonster = 0 # replace this\n    # minus the player health\n"""\nexample output:\nYou attacked dragon with 14 damage and the dragon has 86 health remaining.\ndragon attacked you with 38 damage. Your remaining health is 962.\n"""\n\nNotes:\nYou can reach me at ddjapri@ayclogic.com for any questions. \nClass notes: https://drive.google.com/drive/folders/1OwtesGpGH9qm7A9cPpFKe-gooY71zxc4?usp=sharing
URL:https://www.ayclogic.com/event/6-pm-python-oop-darin-28/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR