Skip to content

Hue-Jhan/Mastermind-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind-c

Mastermind game in C (Uni project), built in Eclipse (our teacher forced us to use this crappy compiler, and also prohibited us from using switch, for, break, and other statements. We also had a limit of returns to use in a function, and had to handle variables, data and globals in a specific way... The entire code and interface is in italian

🕹 Game

The game is quite simple: a random string of X integers is generated and u have to guess it; you insert a possible combination, if its correct u win, if its not the game will tell you the exact number of integers in the correct position and in a wrong position. You have Y attempts, if u lose u can see the correct combination, and u can also save the game and resume it whenever u want (as long as the data path works xd). The interface kinda sux but its better than nothing, at least our teacher let us use colors.

💻 Code

Simple terminal interface (in italian), you can manage the settings to edit the difficulty of the game and other stuff like n° of attempts, n° of integers generated, etc. The menu gives u 4 options:
  • Check out the rules of the game;
  • Manage Settings;
  • Play the game (or resume match);
  • Save Match;

I divided each "section" of this program in headers for a total of 6 excluding the main file.
Ion wanna explain all of them in details as each title says what they do, have fun.

About

Mastermind game in C (University project)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages