Animal wars is a pvp turn-based game that the game will randomly give the player a different role with different skills to fight each other.Who runs out of hp first will lose.
- turn-based 2 player pvp game that each player will fight each others.
- the player can use skills to fight each others.
- player stats save/load management.
- Python version 3.10 or later
- PlayerDB.json file
- random Module
- the program will ask players to load save or create new save that contains player's wins, loses, and win rate.
- the program will randomly give the different role to each player which have unique skills.
- each player have to select their action, attack or use skill, in their turns.
- the player who runs out of hp first will lose the game.
- the program will update the wins, loses, and win rate of the player automatically. Detail of all classes
these classes are the roles in the game and contain the status of the player which are hp, max hp, atk, speed, skills.
this class will create and update the player stats to the PlayerDB.json file and also load stats from it too.
this class contains detail of the player such as name, and stats and also generate the action of the player.
main file that will run the program by using every function and class to work together.
contains class Player
contains class DB
contains class Dog,Cat,Turtle
contains functions that is used to create a Player
contains functions that is used in battle phase of the game
contains all of player's stats which are wins, loses, and win rate