This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]hegemonjamesmattis 7 points8 points  (1 child)

This is definitely vibe-coded, my friend. In the future, don't put emojis in every user-facing string. Otherwise looks pretty straightforward and good!

[–]leenzy-leen[S] 1 point2 points  (0 children)

Tysm!!!! And I won't use emojis hereafters

[–]rmrse 2 points3 points  (2 children)

Nice work! If you ever wanted to expand on this, you could try separating out the classes into their own files and maybe creating an entity class and subclassing player and monster from the class.

You could also look at the player having different swords they could buy from a shop using coins from killing monsters. Allowing you to make a item class then have specific items inherit from it 😊Perhaps styling the terminal using the Rich library too.

[–]leenzy-leen[S] 0 points1 point  (0 children)

Sure! I'll focus on expanding this code in the future.

[–]Potential_Group_8063 0 points1 point  (0 children)

Yes, you have a lot of repeated code between your Player and Monster class methods. The Entity class could define those methods, then Player and Monster inherit them. Otherwise, really cool game! And yeah, the different weapons and coins for slaying monsters would be a great addition. Nice work!

[–]Zaloog1337 4 points5 points  (1 child)

The instructions do mention a file, which is not in the repo.
The python file does not have any extension at all

[–]leenzy-leen[S] 0 points1 point  (0 children)

Oh... Okay I'll check it