YehyunLee / PokemonGame

Pokémon Battle Simulator allows players to engage in exciting turn-based battles using various Pokémon. The simulator is designed to provide a realistic and engaging Pokémon battle experience, complete with different moves, strategies, and outcomes.
https://docs.google.com/presentation/d/18OZ4ov5St6cAIvWGQH5LLCylErJciXATBBqE7P2hu-o/edit?usp=sharing
3 stars 3 forks source link

Gameplay Bugs Present #22

Closed tyseer2335 closed 11 months ago

tyseer2335 commented 11 months ago

There are a few bugs that need to be addressed so the gameplay works I will list them here: 1) The game does not update Pokemon statuses correctly, so the game actually never ends 2) Sometimes when the game is running, it does not alternate turns properly, we might need to keep track of turns in a different way 3) When I run the code using the random turn event (speed) the game loops forever, considering removing the random speed functionality 4) A lot of code is in one file, which is bad practice and needs to be separated out into another use case 5) We need to ensure that we are following best practices with Clean Architecture since many things depend on each other and overall the code is very messy right now with things all over the place.

tyseer2335 commented 11 months ago

I fixed all the bugs as mentioned above, but the code still needs to be separated and I decided to get rid of random turn generator function. I decided to keep track of turns using an instance attribute in gameState.