Pyseas is an opensource project that aims to create a 2D, top down, turn based board game in Pygame. Where players become pirates and control their own ship. Using a card-based dice system, players explore a dynamic map, complete quests, and battle rival pirates.
Added a more readable code, helps for adding features in the future and hopefully less buggy.
Updated the board.py with a template I used by making the final version of the board. This gets printed every time a new turn is called.
Added in some classes the dataclass decorator, this makes the class more readable but also easier to refactor. It also helps to check if certain types are in fact the type you intended it to be.
Added some extra documentation to the repo in docs.
Structured the whole repository to use pygame in the near future. This is how the structure is now set:
PySeasGame/
├── src/
│ ├── launcher/
│ │ ├── init.py
│ │ ├── launcher.py
│ ├── py_version/
│ │ ├── init.py
│ │ ├── board.py
│ │ ├── buying.py
│ │ ├── inventory.py
│ │ ├── money.py
│ │ ├── player.py
│ │ ├── selling.py
│ │ ├── settings.py
│ │ ├── validate_inputs.py
│ ├── pygame_version/
│ │ ├── init.py
│ │ ├── game.py
│ ├── main.py
game.py in the pygame_version can be changed or altered how you want.
This may change in the future, but for now this works. You can ignore the launcher now, first fix Python version and make a beginning with Pygame.
Added a more readable code, helps for adding features in the future and hopefully less buggy.
This may change in the future, but for now this works. You can ignore the launcher now, first fix Python version and make a beginning with Pygame.