This repository contains the obfuscated code submissions from the 4th and 6th editions of the Spaghetti Code Contest, where our team achieved 1st place.
@TheMn, @heokhe, @mehrsa-malekzadeh, and @Mefi22
@TheMn, @TheFatemeh, and @theSaeed
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.
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 prints9 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 prints2L6to the console.
As per the contest's spirit, the source files are not commented. Instead, the documentation is provided here.
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:
0upon successful execution.
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:
0upon successful execution.
To compile and run these programs, you will need a C++ compiler (like g++).
To compile:
g++ tamzi-manzel-vazin-2025.cpp -o contest_2025To run:
./contest_2025To compile:
g++ vazin-tamiz-manzel-2023.cpp -o contest_2023To run:
./contest_2023Feel free to fork this repository, learn from the code, or use it as inspiration for your own obfuscated codes!