https://github.com/rafaumeu/super-trunfo
🎮 Super Trunfo Card Game in C | 🌍 Country Comparison | 📊 Data Analysis | 🎓 Educational Project
https://github.com/rafaumeu/super-trunfo
beginner-friendly brazilian-dev c-programming card-game cli-app command-line comparison-game computer-science data-analysis educational educational-project estacio game-development learning-c learning-to-code open-source programming-learning super-trunfo
Last synced: 9 months ago
JSON representation
🎮 Super Trunfo Card Game in C | 🌍 Country Comparison | 📊 Data Analysis | 🎓 Educational Project
- Host: GitHub
- URL: https://github.com/rafaumeu/super-trunfo
- Owner: rafaumeu
- Created: 2025-02-18T09:56:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-12T16:33:12.000Z (about 1 year ago)
- Last Synced: 2025-03-12T16:35:59.550Z (about 1 year ago)
- Topics: beginner-friendly, brazilian-dev, c-programming, card-game, cli-app, command-line, comparison-game, computer-science, data-analysis, educational, educational-project, estacio, game-development, learning-c, learning-to-code, open-source, programming-learning, super-trunfo
- Language: C
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 33
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🎮 Super Trunfo - Countries
A Super Trunfo style card game implemented in C, focused on comparing characteristics between countries.
[](https://en.wikipedia.org/wiki/C_(programming_language))
[](https://opensource.org/licenses/MIT)
[](https://github.com/rafaumeu/super-trunfo)
---
## 📖 Index
| [Features](#-features) | [Requirements](#-requirements) | [How to Run](#-how-to-run) |
|-------------------------------------|---------------------------|----------------------------------|
| [Structure](#-structure) | [Game Levels](#-game-levels) | [Contributing](#-contributing) |
---
## 🎯 Features
### Card System
- 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")
### Card Properties
- Population
- Area
- GDP
- Tourist Attractions
- Population Density (calculated)
- GDP per Capita (calculated)
- City Name (supports full names with spaces)
- State Code
### Features
### Card System
- 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")
## 💻 Requirements
- GCC Compiler
- Operating system: Windows, Linux, or macOS
- Basic knowledge of terminal/command line
## 🚀 How to Run
1. Clone the repository:
```bash
git clone
cd super-trunfo
```
2. Compile the program:
```bash
gcc supertrunfo.c -o supertrunfo
```
3. Execute the program:
```bash
./supertrunfo
```
## 📁 Structure
```
super-trunfo/
├── supertrunfo.c # source code
└── README.md # Documentation
```
## 🎮 Game Levels
### 🌟 Novice Level
- Population density calculation
- GDP per capita calculation
- Advanced data analysis
- Decision structures for card classification
- Enhanced visual formatting
### 🏃 Adventurer Level (Implemented)
- Interactive attribute selection menu
- Multiple comparison modes (6 attributes)
- Inverse comparison rules for density
- Input validation system
- Advanced result display formatting
### 👑 Master Level (Implemented)
- Card comparison system (implemented with PIB per capita comparison)
- "Super Power" calculation
- Advanced game logic
## 🤝 Contributing
1. Fork the project
2. Create your Feature Branch (`git checkout -b feature/NewFeature`)
3. Commit your changes (`git commit -m 'feat: Add new feature'`)
4. Push to the Branch (`git push origin feature/NewFeature`)
5. Open a Pull Request
## 📝 License
This project is under the MIT license. See the [LICENSE](LICENSE) file for more details.
---
Developed as part of the MateCheck course
[](https://github.com/rafaumeu)