[release] Mastermind 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by MRJPGames, Aug 10, 2015.

  1. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    Mastermind 3DS
    [​IMG][​IMG][​IMG][​IMG]
    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, Aug 11, 2015
    Selver, SLiV3R, bayleef and 21 others like this.


  2. ifrit05

    ifrit05 Advanced Member

    Newcomer
    68
    54
    Aug 11, 2014
    United States
    Huh, this seems interesting. Gonna give it a go.
     
  3. olshrimpeyes

    olshrimpeyes Your question is bad and you should feel bad

    Member
    454
    283
    Jul 30, 2015
    United States
    GNU/Somewhere
    This is nicest looking homebrew on the 3DS I'm going to give it at try.
     
    clank, HaloEffect17 and MRJPGames like this.
  4. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    Thanks!
     
  5. dronesplitter

    dronesplitter GBAtemp Advanced Fan

    Member
    595
    193
    Sep 30, 2007
    United States
    Played my first game, solved it on 6th attempt, *wipes brow*
    The bomb is defused :)
     
    WhoAmI? and MRJPGames like this.
  6. dronesplitter

    dronesplitter GBAtemp Advanced Fan

    Member
    595
    193
    Sep 30, 2007
    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.
     
  7. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,629
    2,466
    Dec 8, 2014
    United States
    Ohio
    Great app, downloaded!
     
    MRJPGames likes this.
  8. Selim873

    Selim873 Nunnayobeesnes

    Member
    1,164
    582
    Jul 31, 2010
    United States
    Chillin' with Bob Ross
    I just started playing this. Awesome work!! :)

    EDIT: I already figured out the cheat too!! :yaysp: Not telling though!!!
     
    Last edited by Selim873, Aug 11, 2015
    MRJPGames likes this.
  9. Chrisser_75

    Chrisser_75 GBAtemp Regular

    Member
    256
    107
    Dec 12, 2014
    Germany
    Germany
    yeah the homebrew scene becomes more handsome :3
    Good work!
     
    MRJPGames likes this.
  10. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    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.
     
  11. DjoeN

    DjoeN Captain Haddock!

    Member
    5,134
    1,477
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    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, Aug 11, 2015
    SLiV3R likes this.
  12. Cid2mizard

    Cid2mizard GBAtemp Fan

    Member
    362
    210
    Aug 16, 2007
    France
    Maubeuge
    Great job, nice gfx, nice adaptation...
     
  13. Jwiz33

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    Thanks!
     
  14. Ericjwg

    Ericjwg Good

    Member
    2,829
    683
    Jul 2, 2015
    Canada
    nice~aha
     
  15. Ericzander

    Ericzander I used hax to get yellow name

    pip Reporter
    1,489
    1,413
    Feb 28, 2014
    United States
    Grand Line
    Woah, good job. This is certainly one of the most pleasing to look at homebrew applications for the 3DS. Thanks a lot for this!
     
    MRJPGames likes this.
  16. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    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.
     
  17. DjoeN

    DjoeN Captain Haddock!

    Member
    5,134
    1,477
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    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 :)
     
    MRJPGames likes this.
  18. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    Luckily adding that is the easiest XD
    Here is my image for displaying the code:
    [​IMG]
    Next thing is to add little bits of code and that feature is added. Local 2 Player will require a bit more work though...
     
    DjoeN likes this.
  19. MRJPGames
    OP

    MRJPGames Pretty great guy

    Member
    1,090
    708
    Aug 17, 2013
    Netherlands
    The Netherlands
    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.
    Minor graphical tweaks to make it look better
     
    Cid2mizard and dronesplitter like this.
  20. DjoeN

    DjoeN Captain Haddock!

    Member
    5,134
    1,477
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    Just tried it, it's perfect :)
    - 2 player is awesome, i and my kids love it, even my wife :)
    - Color option is just what was needed ;)
    - Correct code shown if not guessed is like it should be :)

    Thanks alot, this is great simple gfx homebrew! 1 that should be on everyones (N)3DS!
     
    MRJPGames likes this.