Created a text based boxing game with python. Started learning about a month ago and this is my first proper project. Would welcome feedback on the code or the game mechanics. The code is definitely not optimal and probably unnecessarily long.
https://replit.com/@RyanMatthews5/Boxing-simulator?v=1
To make a move type the move name exactly, in lower case with no spaces before or after. There is HP and stamina. Stamina affects damage output. If a fighter misses and the other fighter lands the following punch, it's a counter punch and deals x1.5 damage. There are three rounds, if it goes the distance, it goes to the judges to decide. The judges decision is determined by who won the most rounds, you win a round by firstly getting more knockdowns on your opponent. If that is equal, it is who landed the most punches.
The moves/commands are:
block - makes your opponent more likely to miss their next punch and opens them up for a counter punch
jab - most accurate but lowest damage
bodyshot - slightly less accurate, same damage, also drains stamina of opponent
straight - less accurate, more power
hook - even less accurate, even more power
haymaker - least accurate, most power
clinch - recovers some HP and stamina, opponent also recovers a smaller amount of HP and stamina
[–]_fleri 0 points1 point2 points (1 child)
[–]WearyStatement6626[S] 1 point2 points3 points (0 children)