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:20241202T160000
DTEND;TZID=America/Los_Angeles:20241202T170000
DTSTAMP:20260506T080259
CREATED:20241125T235955Z
LAST-MODIFIED:20241203T025851Z
UID:27503-1733155200-1733158800@www.ayclogic.com
SUMMARY:4 PM – Python OOP – Darin
DESCRIPTION:Today We:\n\nContinued the MonsterSystem project.\nReviewed some concepts such as dictionaries\, objects\, and using both together.\n\nHomework:\nIn a file called Dec2_InheritanceHW.py\, do the following and upload it to the google drive when you are done: \n\nContinue in your main.py file for the MonsterSystem project. If you are missing code or a file\, look for the file in this google drive: https://drive.google.com/drive/folders/1fjS0f3MTDQRRo3pdQvbsiKnNWPQQqptf?usp=sharing\nContinue by implementing the sword attack damage.\nUnder the play_adventure method:\n\n# You have to print a statement like this:\n\n# You attacked dragon with 17 damage and the dragon has 69 health remaining.\n# dragon attacked you with 31 damage. Your remaining health is 908.\n\n# Steps:\n# Get a random damage amount from 10 - 20 to attack the monster\n# Get a random damage amount from 0 to max_attack of the monster to attack the player\n# tip: to get the max_attack value\, you need to use 'm'\n\n# reduce player health by the first random damage\n# reduce monster health by the second random damage\n\n# print the information like above.\nHere is a sample output: \nDarin you have 951 health remaining.\nPlease choose your monster:\n– Dragon – 86 health – 50 Max attack\n– Troll – 50 health – 20 Max attack\n– Water Golem – 30 health – 20 Max attack\n– Cyclops – 60 health – 30 Max attack\n– Phoenix – 200 health – 100 Max attack\nEnter your selection (enter ‘stop’ to quit the game): troll \nWhat do you want to do with the troll\n1. Magic attack\n2. Sword attack – 10 to 20 damage\nEnter your selection: 2\nYou attacked troll with 12 damage and the troll has 38 health remaining.\ntroll attacked you with 12 damage. Your remaining health is 939. \nDarin you have 939 health remaining.\nPlease choose your monster:\n– Dragon – 86 health – 50 Max attack\n– Troll – 38 health – 20 Max attack\n– Water Golem – 30 health – 20 Max attack\n– Cyclops – 60 health – 30 Max attack\n– Phoenix – 200 health – 100 Max attack\nEnter your selection (enter ‘stop’ to quit the game): dragon \nWhat do you want to do with the dragon\n1. Magic attack\n2. Sword attack – 10 to 20 damage\nEnter your selection: 2\nYou attacked dragon with 17 damage and the dragon has 69 health remaining.\ndragon attacked you with 31 damage. Your remaining health is 908. \nDarin you have 908 health remaining.\nPlease choose your monster:\n– Dragon – 69 health – 50 Max attack\n– Troll – 38 health – 20 Max attack\n– Water Golem – 30 health – 20 Max attack\n– Cyclops – 60 health – 30 Max attack\n– Phoenix – 200 health – 100 Max attack\nEnter your selection (enter ‘stop’ to quit the game): \n\n\n\nNotes:\nEmail me at ddjapri@ayclogic.com if you have any questions.
URL:https://www.ayclogic.com/event/4-pm-python-oop-darin-16/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR