DEV Community

Mareyia
Mareyia

Posted on

Card Fight: Updates

'Card Fight' was updated for the purpose of completing the 'Portfolio Project: Recommendation Software' Module
from CodeCademy: Computer Science Career path.

Updates:
main menu uses now a small tree data stracture to handle more options
the game has now maps
multiple players can play either human or computer
*there was an attempted to make computer moves smart but my idea was unable to work.
In general the game code can easily accept changes like, new maps, cards, menu options... I try to make it as modular as possible.

The requirements for this project were to create a recommendation software for the user input. CodaCademy gave me some examples with restaurants catalogs (User types: "pas") and I recommend "pasta" and etc.
But I thought that my last project can use an update with my new knowledge. The board game my game is based on also has a map and I was planing on making a map. So my recommendation software takes the location of the user (aka its input that selected a position) and then gives the best path for my npcs to find the user. This path-finding I based it on A* algorithm and I wanted to use and it was the last thing that I learned before the project that combined most of the new things I learned. I felt a little bit off track, I wasn't sure if I followed the requirements correctly but in the end I got satisfied with my decision.
Since I am still learning any challenge I face will help, so in worst case I will have to restudy some of the stuff I learned but I think this is completely fine.

There will be future updates, I have a vision for this game and I will upgrade it while I study and I want to use any new skills and knowledge I get that fits to complete this project.

https://github.com/Mareyia/CardFight
old dev post: https://dev.to/mareyiaz/card-fight-a-python-terminal-game-285

Top comments (0)