Homebrew [release] Mastermind 3DS

MRJPGames

Pretty great guy
OP
Member
Joined
Aug 17, 2013
Messages
1,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,676
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,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,676
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
54
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,857
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,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,676
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
54
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,857
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,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,676
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

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu