Skip to content

๐ŸŽฎ Super Trunfo Card Game in C | ๐ŸŒ Country Comparison | ๐Ÿ“Š Data Analysis | ๐ŸŽ“ Educational Project

Notifications You must be signed in to change notification settings

rafaumeu/super-trunfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

31 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Super Trunfo - Countries

A Super Trunfo style card game implemented in C, focused on comparing characteristics between countries.

C License: MIT Build Status


๐Ÿ“– Index

Features Requirements How to Run
Structure Game Levels 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:
git clone <https://github.com/rafaumeu/super-trunfo.git>
cd super-trunfo
  1. Compile the program:
gcc supertrunfo.c -o supertrunfo
  1. Execute the program:
./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 file for more details.


Developed as part of the MateCheck course

GitHub