I am writing a mastermind game using c but array and pointer are not allowed.
The game requires the user to guess the numbers only, guessing color is not required.
If array can not be used, I have to write a long code in a for loop, I don't want to write so many "if then else" statement to code all the possibilities.
What algorithm should I use?