Skip to content

Our 1st place winning submissions for the 2023 & 2025 Spaghetti Code Contest, featuring highly obfuscated C++ programs.

License

Notifications You must be signed in to change notification settings

TheMn/spaghetti-code-contest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spaghetti Code Contest

This repository contains the obfuscated code submissions from the 4th and 6th editions of the Spaghetti Code Contest, where our team achieved 1st place.

2025 Team Members:

@TheMn, @heokhe, @mehrsa-malekzadeh, and @Mefi22

2023 Team Members:

@TheMn, @TheFatemeh, and @theSaeed

About the Contest:

The Spaghetti Code Contest challenges participants to write the most obfuscated (difficult to read or understand) code possible while also finding and understanding the outputs of others’ codes. It’s a mix of creating complex problems and cracking codes. Creating such complex code is a fun and creative challenge that tests our coding skills in a very unique way.

Program Descriptions

This repository contains two programs, each from a different year of the contest.

  • tamzi-manzel-vazin-2025.cpp: A program from the 2025 contest. When compiled and run, it prints 9 3 (with a non-printable character between the numbers) to the console.
  • vazin-tamiz-manzel-2023.cpp: A program from the 2023 contest. When compiled and run, it prints 2L6 to the console.

Source Code Documentation

As per the contest's spirit, the source files are not commented. Instead, the documentation is provided here.

tamzi-manzel-vazin-2025.cpp

This is an obfuscated C++ program from the Spaghetti Code Contest.

  • Purpose: The program is intentionally written in a confusing and unreadable style as part of a programming contest. It uses macros, goto statements, and other tricks to hide its true purpose. When compiled and executed, it produces the output "9 3" (with an unprintable character between the numbers) to the standard output.
  • Functions:
    • int main(): The main entry point of the program.
      • Parameters: None.
      • Returns: 0 upon successful execution.

vazin-tamiz-manzel-2023.cpp

This is another obfuscated C++ program from the Spaghetti Code Contest.

  • Purpose: Similar to the 2025 version, this program is designed to be as unreadable as possible. When compiled and run, it prints "2L6" to the console.
  • Functions:
    • int main(): The main entry point of the program.
      • Parameters: None.
      • Returns: 0 upon successful execution.

Usage

To compile and run these programs, you will need a C++ compiler (like g++).

2025 Contest Program

To compile:

g++ tamzi-manzel-vazin-2025.cpp -o contest_2025

To run:

./contest_2025

2023 Contest Program

To compile:

g++ vazin-tamiz-manzel-2023.cpp -o contest_2023

To run:

./contest_2023

Contributing:

Feel free to fork this repository, learn from the code, or use it as inspiration for your own obfuscated codes!

About

Our 1st place winning submissions for the 2023 & 2025 Spaghetti Code Contest, featuring highly obfuscated C++ programs.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages