%3CLINGO-SUB%20id%3D%22lingo-sub-975871%22%20slang%3D%22en-US%22%3ESmall%20Basic%20-%20Mastermind%20Gallery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-975871%22%20slang%3D%22en-US%22%3E%3CP%3EI%20found%20many%20Mastermind%20programs%20in%20Small%20Basic%20Forum.%26nbsp%3B%20And%20I%20also%20ported%20a%20Mastermind%20program%20from%20Visual%20Basic%20to%20Small%20Basic.%26nbsp%3B%20Today%2C%20I'd%20like%20to%20introduce%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1851606718%22%20id%3D%22toc-hId-1851606718%22%3E6-color%20text%3C%2FH2%3E%3CP%3EOriginal%20program%20(%3CA%20title%3D%22JBH373%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FJBH373%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EJBH373)%3C%2FA%3E%26nbsp%3Bwas%20announced%20as%20an%20arry%20sample%20program%20in%20a%20forum%20thread%20%3CA%20title%3D%22Array%20Project%20Ideas%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F916d05ab-c562-4819-8b3c-347d322044a7%2Farray-project-ideas%3Fforum%3Dsmallbasic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EArray%20Project%20Ideas%3C%2FA%3E%26nbsp%3Bby%20Davey-Wavey%20in%202010.%26nbsp%3B%26nbsp%3BI%20modified%20a%20little%20and%20published%20as%26nbsp%3B%3CA%20title%3D%22JBH373-2%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FJBH373-2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EJBH373-2%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154216i25F39D7B94A37636%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22JBH373-2.png%22%20title%3D%22JBH373-2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId--700550243%22%20id%3D%22toc-hId--700550243%22%3E6-color%3C%2FH2%3E%3CP%3EThe%20program%20(%3CA%20title%3D%22JTB646%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FJTB646%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EJTB646%3C%2FA%3E)%20is%20introduced%20by%20rubikWizard%20in%20a%20thread%20%3CA%20title%3D%22My%20first%20SB%20program%20-%20a%20few%20questions%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2Fa3d64aa6-27d0-4a89-897a-890fea4f8a97%2Fmy-first-sb-program-a-few-questions%3Fforum%3Dsmallbasic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMy%20first%20SB%20program%20-%20a%20few%20questions%3C%2FA%3E%20in%202011.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20196px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154217i64C2A274BFDDA716%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22JTB646.png%22%20title%3D%22JTB646.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1042260092%22%20id%3D%22toc-hId-1042260092%22%3E6-color%20(same%20color%20not%20allowed)%3C%2FH2%3E%3CP%3EThis%20Dutch%20version%20of%20a%20program%20(%3CA%20title%3D%22MKR454%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FMKR454%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMKR454%3C%2FA%3E)%20was%20written%20by%20boschg%20and%20announced%20in%20a%20thread%20%3CA%20title%3D%22SmallBasic%20program%3A%20Mastermind%20Full%20graphic%20game%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F95632f8c-b7ef-4d28-ada8-644fb98402cc%2Fsmallbasic-program-mastermind-full-graphic-game%3Fforum%3Dsmallbasic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESmallBasic%20program%3A%20Mastermind%20Full%20graphic%20game%3C%2FA%3E%20in%202014.%26nbsp%3B%20I%20translated%20this%20version%20to%20English%20and%20published%20as%26nbsp%3B%3CA%20title%3D%22MKR454-0%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FMKR454-0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMKR454-0%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20220px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154219iEA474300ECAF2DA5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22MKR454-0.png%22%20title%3D%22MKR454-0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId--1509896869%22%20id%3D%22toc-hId--1509896869%22%3ESolver%3C%2FH2%3E%3CP%3EThis%20program%20is%20Mastermind%20solver%20written%20by%20Coopsyp%20in%202015.%26nbsp%3B%20And%20introduced%20in%20a%20thread%26nbsp%3B%3CA%20title%3D%22Nominate%20games%20(or%20other%20programs)%20here%20to%20get%20featured%20on%20our%20Blog!%20(PART%202)%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F51adebb3-ed34-49be-8cc1-98c98063ef72%2Fnominate-games-or-other-programs-here-to-get-featured-on-our-blog-part-2%3Fforum%3Dsmallbasic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENominate%20games%20(or%20other%20programs)%20here%20to%20get%20featured%20on%20our%20Blog!%20(PART%202)%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20399px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154221i6730C756350D653E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22mastermind.PNG%22%20title%3D%22mastermind.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-232913466%22%20id%3D%22toc-hId-232913466%22%3E4-color%20(4%2F5%2F6%20pegs)%3C%2FH2%3E%3CP%3EOriginal%20Visual%20Basic%20version%20is%20introduced%20by%20.paul.%20_%20in%20a%20TechNet%20Wiki%20article%20in%202017.%26nbsp%3B%20I%20converted%20this%20program%20from%20Visual%20Basic%20to%20Small%20Basic%20and%20published%20as%26nbsp%3B%3CA%20title%3D%22GMV958-0%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FGMV958-0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGMV958-0%3C%2FA%3E.%26nbsp%3B%20And%20I%20also%20wrote%20an%20TechNet%20Wiki%20article%26nbsp%3B%3CA%20title%3D%22Small%20Basic%3A%20Code%20Conversion%20From%20Visual%20Basic%20(MasterMind%20Game)%22%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F53355.small-basic-code-conversion-from-visual-basic-mastermind-game.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESmall%20Basic%3A%20Code%20Conversion%20From%20Visual%20Basic%20(MasterMind%20Game)%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20301px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154224iC8931F336E9A56B2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22mastermindSBwinning.png%22%20title%3D%22mastermindSBwinning.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1975723801%22%20id%3D%22toc-hId-1975723801%22%3ENew%206-color%3C%2FH2%3E%3CP%3EThe%20program%20is%20written%20by%20Justaname21%20and%20introduced%20in%26nbsp%3B%3CA%20title%3D%22Need%20help%20with%20resetting%20my%20small%20basic%20Mastermind%20code%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F4090f706-aea3-4b96-8165-c58a6626d813%2Fneed-help-with-resetting-my-small-basic-mastermind-code%3Fforum%3Dsmallbasic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENeed%20help%20with%20resetting%20my%20small%20basic%20Mastermind%20code%3C%2FA%3E%20in%202018.%26nbsp%3B%20And%20I%20modified%20this%20program%20and%20published%20as%26nbsp%3B%3CA%20title%3D%22XJJ228%22%20href%3D%22http%3A%2F%2Fsmallbasic.com%2Fprogram%2F%3FXJJ228%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EXJJ228%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20232px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F154227iA5416D04DCC68F67%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22XJJ228.png%22%20title%3D%22XJJ228.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId--576433160%22%20id%3D%22toc-hId--576433160%22%3EConclusion%3C%2FH2%3E%3CP%3EThere%20are%20at%20least%206%20Mastermind%20programs%20written%20in%20Small%20Basic.%26nbsp%3B%20I%20think%20Mastermind%20is%20a%20medium%20level%20to%20write.%26nbsp%3B%20How%20about%20to%20write%20your%20own%20Mastermind%20game%3F%26nbsp%3B%20In%20my%20case%2C%20how%20to%20count%20same%20color%20but%20not%20same%20place%20pegs%20was%20little%20difficult.%26nbsp%3B%20Have%20fun%20with%20your%20code!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-975871%22%20slang%3D%22en-US%22%3E%3CP%3EI%20found%20many%20Mastermind%20programs%20in%20Small%20Basic%20Forum.%26nbsp%3B%20And%20I%20also%20ported%20a%20Mastermind%20program%20from%20Visual%20Basic%20to%20Small%20Basic.%26nbsp%3B%20Today%2C%20I'd%20like%20to%20introduce%20them.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Senior Member

I found many Mastermind programs in Small Basic Forum.  And I also ported a Mastermind program from Visual Basic to Small Basic.  Today, I'd like to introduce them.

 

6-color text

Original program (JBH373) was announced as an arry sample program in a forum thread Array Project Ideas by Davey-Wavey in 2010.  I modified a little and published as JBH373-2.

 

JBH373-2.png

 

6-color

The program (JTB646) is introduced by rubikWizard in a thread My first SB program - a few questions in 2011.

JTB646.png

 

6-color (same color not allowed)

This Dutch version of a program (MKR454) was written by boschg and announced in a thread SmallBasic program: Mastermind Full graphic game in 2014.  I translated this version to English and published as MKR454-0.

MKR454-0.png

 

Solver

This program is Mastermind solver written by Coopsyp in 2015.  And introduced in a thread Nominate games (or other programs) here to get featured on our Blog! (PART 2).

 

mastermind.PNG

 

4-color (4/5/6 pegs)

Original Visual Basic version is introduced by .paul. _ in a TechNet Wiki article in 2017.  I converted this program from Visual Basic to Small Basic and published as GMV958-0.  And I also wrote an TechNet Wiki article Small Basic: Code Conversion From Visual Basic (MasterMind Game).

 

mastermindSBwinning.png

 

New 6-color

The program is written by Justaname21 and introduced in Need help with resetting my small basic Mastermind code in 2018.  And I modified this program and published as XJJ228.

XJJ228.png

 

Conclusion

There are at least 6 Mastermind programs written in Small Basic.  I think Mastermind is a medium level to write.  How about to write your own Mastermind game?  In my case, how to count same color but not same place pegs was little difficult.  Have fun with your code!