Homebrew [release] Mastermind 3DS

MRJPGames

Pretty great guy
OP
Member
Joined
Aug 17, 2013
Messages
1,191
Trophies
0
Location
The Netherlands
Website
fizazy.com
XP
1,523
Country
Netherlands
Mastermind 3DS
1231kkk.png
29qo651.png
3LWIR9t.png
OYsoxUm.png
A version of mastermind for 3DS. IMO it has nice graphics, in a modern style (ios 7/lollipop). Fully functional, the computer generates a random code and you get 7 attempts to crack it. Black pins mean a correct color and correct place, white pins mean correct color but not correct the correct place.

Works with any version of ninjhax, and should work with ironhax when released.

Update (8/11/2015):
Local multiplayer (on same 3DS) player 1 creates code, player 2 tries to crack the code
Added color option (6,7 or 8 colors)
If you do not guess the code correctly it will now display the correct code on screen.

Controls:
Touch: use on-screen buttons
up/down: change selected color on bottom screen
right/left: change selected circle
a: input attempt

There is also a fun little secret way to cheat ;)
 
Last edited by MRJPGames,

dronesplitter

Well-Known Member
Member
Joined
Sep 30, 2007
Messages
595
Trophies
0
XP
421
Country
United States
Will the correct solution randomly include color duplicates or can there only be one of each color for the solution? Four different colors on that solution and in your example, so I was curious.
 

MRJPGames

Pretty great guy
OP
Member
Joined
Aug 17, 2013
Messages
1,191
Trophies
0
Location
The Netherlands
Website
fizazy.com
XP
1,523
Country
Netherlands
Will the correct solution randomly include color duplicates or can there only be one of each color for the solution? Four different colors on that solution and in your example, so I was curious.
It selects one of the eight colors for each time, thus a possible code would be red-red-red-red, though rather unlikely. The reason for that specific code in the screenshot is due to the fact I was using Citra to make them, Citra always starts the game with time 0, where a actual 3DS would start with whatever time is set on the 3DS. This time is used to seed the random number generator used to generate the code. This is just the first code that will always generate on Citra. For the few Citra players as soon as you generate a new code the random number generator will be seeded again with the time you've been playing so it will be "random" after the first time. Again as osGetTime() is used on a 3DS it will always be "random".

TLDR: Yes color duplicates are a thing.
 

DjoeN

Captain Haddock!
Member
Joined
Oct 21, 2005
Messages
5,489
Trophies
0
Age
52
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,789
Country
Belgium
Nice little game for 3DS, some thoughts for a more realistic MasterMind:

- Can the solution be shown when you don't get it in all given turns?
- Turns could be set on start, 12, 10, 8 or 6 turns would be awesome (like original Mastermind)
- Difficult setting:
* Easy: 4 rows with 6 colors, each row has a different color (Like original MasterMind)
* Normal: 4 rows with 6 colors and 2,3 or 4 rows can have the same color (Like original MasterMind)
* Difficult: 5 rows with 8 colors, each row has a different color
* Very difficult: 5 rows with 8 colors and 2,3,4 or 5 rows can have the same color
* Hard: 6 rows with 8 colors, each row has a different color
* Extreme: 6 rows with 8 colors and 2, 3,4,5 or 6 rows can have the same color
(you can also just say Level 1, to Level 6 instead of easy etc...)

Optional:
- 2 player mode (someone sets the color, press hide and give the 3ds to second player)
- The solution only gets shown if the second player can't figure the code

I know i can't program :/ , so i just ask!
I love mastermind and it's great to have it on 3DS as homebrew :)
Thank you!

https://en.wikipedia.org/wiki/Mastermind_(board_game)
 
Last edited by DjoeN,
  • Like
Reactions: SLiV3R

MRJPGames

Pretty great guy
OP
Member
Joined
Aug 17, 2013
Messages
1,191
Trophies
0
Location
The Netherlands
Website
fizazy.com
XP
1,523
Country
Netherlands
Nice little game for 3DS, some thoughts for a more realistic MasterMind:

- Can the solution be shown when you don't get it in all given turns?
- Turns could be set on start, 12, 10, 8 or 6 turns would be awesome (like original Mastermind)
- Difficult setting:
* Easy: 4 rows with 6 colors, each row has a different color (Like original MasterMind)
* Normal: 4 rows with 6 colors and 2,3 or 4 rows can have the same color (Like original MasterMind)
* Difficult: 5 rows with 8 colors, each row has a different color
* Very difficult: 5 rows with 8 colors and 2,3,4 or 5 rows can have the same color
* Hard: 6 rows with 8 colors, each row has a different color
* Extreme: 6 rows with 8 colors and 2, 3,4,5 or 6 rows can have the same color
(you can also just say Level 1, to Level 6 instead of easy etc...)

Optional:
- 2 player mode (someone sets the color, press hide and give the 3ds to second player)
- The solution only gets shown if the second player can't figure the code

I know i can't program :/ , so i just ask!
I love mastermind and it's great to have it on 3DS as homebrew :)
Thank you!

https://en.wikipedia.org/wiki/Mastermind_(board_game)
Wow that's a long list...
Local 2 player mode will be added (as that was my plan from the start already XD)
The solution getting shown is a good idea, I will have to look into where the correct code is displayed but I will probably figure it out before the next release.
Difficulties probably won't be in the next update but I will try to add them in a future update (though probably only easy, normal and hard). Currently it's 8 colors where 2,3 or 4 rows can be the same color.
 

DjoeN

Captain Haddock!
Member
Joined
Oct 21, 2005
Messages
5,489
Trophies
0
Age
52
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,789
Country
Belgium
Wow that's a long list...
Local 2 player mode will be added (as that was my plan from the start already XD)
The solution getting shown is a good idea, I will have to look into where the correct code is displayed but I will probably figure it out before the next release.
Difficulties probably won't be in the next update but I will try to add them in a future update (though probably only easy, normal and hard). Currently it's 8 colors where 2,3 or 4 rows can be the same color.
haha, yeah i know.

It's just, i like to play it as authentic as possible :)
easy, normal and hard would be cool even in a future update and not the next :)
The best update next, would be showing the solution if you don't find it yourself.

Thanks for your work :)
 
  • Like
Reactions: MRJPGames

MRJPGames

Pretty great guy
OP
Member
Joined
Aug 17, 2013
Messages
1,191
Trophies
0
Location
The Netherlands
Website
fizazy.com
XP
1,523
Country
Netherlands
haha, yeah i know.

It's just, i like to play it as authentic as possible :)
easy, normal and hard would be cool even in a future update and not the next :)
The best update next, would be showing the solution if you don't find it yourself.

Thanks for your work :)
Luckily adding that is the easiest XD
Here is my image for displaying the code:
QadF5RT.png

Next thing is to add little bits of code and that feature is added. Local 2 Player will require a bit more work though...
 
  • Like
Reactions: DjoeN
General chit-chat
Help Users
  • No one is chatting at the moment.
    KenniesNewName @ KenniesNewName: Belifu Dual Channel TENS EMS Unit 24 Modes Muscle Stimulator for Pain Relief Therapy, Electronic...