Skip to content

This repository contains the source code and related files of my final project for the Programming 2 course. The project is a puzzle game inspired by Mexican mythology, offering two levels of difficulty, a login and registration system, and persistent score tracking through file handling.

Notifications You must be signed in to change notification settings

JordanMedinaOrtiz/mexican-mythology-puzzle

Repository files navigation

Puzzle Game Based on Mexican Mythology — C/C++ 🧩

Ver README en Español

This repository contains the source code and related files of my final project for the Programming 2 course. The project is a puzzle game inspired by Mexican mythology, offering two levels of difficulty, a login and registration system, and persistent score tracking through file handling. Developed using C and C++, this game showcases advanced programming skills in file manipulation, data structures, and user input validation. The main objective of the project was to apply advanced programming techniques by building an interactive game that handles user data, difficulty settings, and persistent scores through efficient file operations and structured logic.

Technologies Used

C C++

Objective

  • Design and implement a complete game system with user profiles and difficulty options.
  • Practice file input/output for saving user accounts and scores.
  • Implement structured programming with clean modular code using structs and queues.
  • Ensure a consistent user experience through solid input validation and error handling.

Main Features

  • Advanced File Handling: User data and game scores are stored and retrieved from text files, enabling persistent game sessions.
  • Difficulty Levels: Two levels of difficulty are available to accommodate different player skill levels, offering a fun and scalable challenge.
  • Login & Registration System: Players can create and manage accounts, with secure validation to prevent duplicate usernames.
  • Robust Input Validation: Ensures that all inputs are valid, usernames are unique, and game data remains consistent across sessions.
  • Cultural Theme: Inspired by Mexican mythology, adding an educational and thematic layer to the gameplay.

Skills Acquired

  • Advanced C/C++ file management techniques
  • Implementation of lists, queues, and structs
  • Development of console UI/UX logic
  • Design of authentication and session systems
  • Debugging and validating user input for stability

How to Use

  1. Clone this repository to your local machine:

    git clone https://github.com/jordanmedinaortiz/mexican-mythology-puzzle.git
    cd mexican-mythology-puzzle
  2. Compile the program using GCC or any compatible C compiler:

    gcc rompecabezasMitologiaMexicana.c -o rompecabezasMitologiaMexicana
  3. Run the program:

    ./rompecabezasMitologiaMexicana
  4. Login or Register

  5. Choose Difficulty

  6. Enjoy the Game

This project was developed individually as my final project for the Programming 2. It was an excellent opportunity to deepen my understanding of game development, user session management, and file-based systems using C/C++. I hope it provides inspiration or a starting point for anyone learning about system-based console applications.

Project Image

About

This repository contains the source code and related files of my final project for the Programming 2 course. The project is a puzzle game inspired by Mexican mythology, offering two levels of difficulty, a login and registration system, and persistent score tracking through file handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published