+ 1

Monster class example

here's the monster class of the RPG I will program after the python track. Square trembles... https://code.sololearn.com/cfh9N7KXmwfO/?ref=app

15th Aug 2018, 3:30 PM
Stefano Marzo
Stefano Marzo - avatar
3 Respostas
+ 6
Cool! How about creating some methods for combat (turn-based)? 😁
15th Aug 2018, 3:33 PM
Eduardo Petry
Eduardo Petry - avatar
+ 6
Stefano Marzo You're in the right way! Keep it up 😉
15th Aug 2018, 3:40 PM
Eduardo Petry
Eduardo Petry - avatar
+ 1
I remember I've tried once. but it was a class that takes player a monster as arguments. then has methods for attack and defence. like a Def with a while that ends when hp was zero, in the meantime it came attack functions that modify the player or monster hp. I will try to code It when I'll finish the OOP lesson.
15th Aug 2018, 3:38 PM
Stefano Marzo
Stefano Marzo - avatar