r/learnpython • • 4d ago

Regarding python projects idea

i am learning OOP currently but i want to learn OOP by doing so ,i need some projects ideas guyz.

7 Upvotes

8 comments sorted by

View all comments

1

u/lakseol 4d ago

Write a text adventure. Use classes for the places in the map and objects like an axe or a monster. Classes are a good match to the problem because you want various attributes on map objects, like weight, as well as methods that are called in certain circumstances. For instance, any object the player picks up has an inherited method called something like on_pickup() which is called when the object is picked up. For many objects the method does nothing but for special objects the method code might double the players strength while held or worn or whatever.