A Super Trunfo style card game implemented in C, focused on comparing characteristics between countries.
Features | Requirements | How to Run |
---|---|---|
Structure | Game Levels | Contributing |
- Registration of cards with unique properties
- 8 states (A-H) with 4 cities each
- Unique codes for each card (e.g., A01, B02)
- Property comparison system
- Automatic calculation of indicators (population density and GDP per capita)
- Classification of economic development and population density
- Support for city names with multiple words (e.g., "Sรฃo Paulo", "Rio de Janeiro")
- Population
- Area
- GDP
- Tourist Attractions
- Population Density (calculated)
- GDP per Capita (calculated)
- City Name (supports full names with spaces)
- State Code
- Registration of cards with unique properties
- 8 states (A-H) with 4 cities each
- Unique codes for each card (e.g., A01, B02)
- Property comparison system
- Automatic calculation of indicators (population density and GDP per capita)
- Classification of economic development and population density
- Support for city names with multiple words (e.g., "Sรฃo Paulo", "Rio de Janeiro")
- GCC Compiler
- Operating system: Windows, Linux, or macOS
- Basic knowledge of terminal/command line
- Clone the repository:
git clone <https://github.com/rafaumeu/super-trunfo.git>
cd super-trunfo
- Compile the program:
gcc supertrunfo.c -o supertrunfo
- Execute the program:
./supertrunfo
super-trunfo/
โโโ supertrunfo.c # source code
โโโ README.md # Documentation
- Population density calculation
- GDP per capita calculation
- Advanced data analysis
- Decision structures for card classification
- Enhanced visual formatting
- Interactive attribute selection menu
- Multiple comparison modes (6 attributes)
- Inverse comparison rules for density
- Input validation system
- Advanced result display formatting
- Card comparison system (implemented with PIB per capita comparison)
- "Super Power" calculation
- Advanced game logic
- Fork the project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your changes (
git commit -m 'feat: Add new feature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
This project is under the MIT license. See the LICENSE file for more details.