Tristan
n00bie GP32 coder (MasterMind)
Before I start, I'd just like to say that this is actually just a beginner's project, and should be treated as such. I wrote this program to learn C, and the GP32 at the same time. I learned some C, I also learned something about the GP32 so for me this project has already done what it should have done. I also thought it might be cool to fix it up a little and release it to the public.
So, here it is. The first release of Mastermind. Most of you probably know what this game is about but for those who don't:
Mastermind is a game of logic. Your opponent chooses a color combination consisting of four pins that each have a different color. These pins are placed in four holes that are then covered.
Your objective is to guess the correct combination in as few attempts as possible. In each attempt, you guess a combination by placing four pins in a row.
Your opponent then informs your of your progress by placing a number of small black and white pins. A black pin means that one of the pins you have choosen has the correct color and is placed in the correct position. A white pin means that you did choose the correct color but that you did not place it in in the correct position.
Ok, enough with the explanation, on to the emotional stuff.
Credits go out to:
The entire #gp32dev channel, for helping me out with even the dumbest questions.
DJWillis, for being there and talking about fantasy books, helping me with my code alot, and for ScummVM
Inopia, for sharing his BMP loader code with me, even though I never really got it to work (my fault )
MrMirko, for his excellent SDK and helpfull SDK manual.
And GP32 community, for just plain being there and being nice (Most of the time anyway, when we're not busy with conspiricy theories).
Ok, so, download it then :unsure:
I'd love some feedback, be it good or bad, just don't flame me. I didn't actually write this for you, I wrote it for me to learn some stuff. Just thought some people might appreciate it.
Edit: All bugs fixed, and I hardcoded a mod file into it.
Edit2: New version, has a few new gizmo's, read about it in the bottom post.
So, here it is. The first release of Mastermind. Most of you probably know what this game is about but for those who don't:
Mastermind is a game of logic. Your opponent chooses a color combination consisting of four pins that each have a different color. These pins are placed in four holes that are then covered.
Your objective is to guess the correct combination in as few attempts as possible. In each attempt, you guess a combination by placing four pins in a row.
Your opponent then informs your of your progress by placing a number of small black and white pins. A black pin means that one of the pins you have choosen has the correct color and is placed in the correct position. A white pin means that you did choose the correct color but that you did not place it in in the correct position.
Ok, enough with the explanation, on to the emotional stuff.
Credits go out to:
The entire #gp32dev channel, for helping me out with even the dumbest questions.
DJWillis, for being there and talking about fantasy books, helping me with my code alot, and for ScummVM
Inopia, for sharing his BMP loader code with me, even though I never really got it to work (my fault )
MrMirko, for his excellent SDK and helpfull SDK manual.
And GP32 community, for just plain being there and being nice (Most of the time anyway, when we're not busy with conspiricy theories).
Ok, so, download it then :unsure:
I'd love some feedback, be it good or bad, just don't flame me. I didn't actually write this for you, I wrote it for me to learn some stuff. Just thought some people might appreciate it.
Edit: All bugs fixed, and I hardcoded a mod file into it.
Edit2: New version, has a few new gizmo's, read about it in the bottom post.