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

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Super Trunfo - Countries

A Super Trunfo (Top Trumps) style card game implemented in C, focused on comparing country characteristics.

C License: MIT Build Status


๐Ÿ“– Table of Contents

Features Requirements How to Run
Structure Game Levels Contributing

๐ŸŽฏ Features

Card System

  • Unique property card registration
  • 8 states (A-H) with 4 cities each
  • Unique code system (e.g., A01, B02)
  • Property comparison system

Card Properties

  • Population
  • Area
  • GDP
  • Tourist Attractions

๐Ÿ’ป Requirements

  • GCC Compiler
  • Windows, Linux, or macOS operating system
  • Basic terminal/command line knowledge

๐Ÿš€ 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. Run the program:
./supertrunfo

๐Ÿ“ Structure

super-trunfo/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ supertrunfo.c    # Main game implementation
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ””โ”€โ”€ project-automation.yml
โ”œโ”€โ”€ .vscode/
โ”‚   โ””โ”€โ”€ tasks.json
โ””โ”€โ”€ README.md            # Documentation

๐ŸŽฎ Game Levels

๐ŸŒŸ Novice Level

  • Basic card registration
  • Data visualization
  • Unique code system

๐Ÿƒ Adventurer Level

  • Population density calculation (inhabitants/kmยฒ)

    • Uses population and area for calculation
    • 2 decimal places formatting
    • Scientific notation for large values
  • GDP per capita calculation (GDP/population)

    • GDP divided by total population
    • Proper monetary formatting
    • Development level classification
  • Advanced data analysis

    • Card comparison
    • Economic indicator ranking
    • Tabular visualization

๐Ÿ‘‘ Master Level

  • Card comparison system
  • "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.


Made with โค๏ธ by Rafael Dias Zendron

LinkedIn GitHub