Click the green flag several times before you begin for best results. (Sometimes the variables don't reset when the flag is clicked once then they cause errors) A simple game of Mastermind with up to 10 colors: Red, Blue, Yellow, Lime, Orange, Teal, Purple, Gray, Mahogany, and Dark Green. Type to guess if you clicked "type", otherwise simply click on the colors themselves to change them.
Pink pegs are correct color, correct place. White pegs are correct color, wrong location. After many days of testing, it appears to work correctly for all difficulties. Please notify me in the comments if you find a sequence that it doesn't check right. R = red B = blue Y = yellow L = lime (the brighter green) O = orange T = teal P = purple G = gray M = mahogany D = dark green (the olive darker green) Colors are listed in order of how they appear in the difficulties. Easy encompasses the first four listed colors (red, blue, yellow, and lime), Medium encompasses the first six listed colors (easy colors + orange and teal), Hard encompasses the first eight listed colors (medium colors + purple and gray), and impossible encompasses all of the colors (hard colors + mahogany and dark green). If you find ANY errors or bugs (one peg too many, one peg not enough), please tell me. Providing the exact sequence you had would help a lot as well. Update log: v1 - 4/20/2016 (created the simple version with four colors) v2 - 4/21/2016 (added difficulty levels, which now spans 10 colors total) v4 - 9/7/2016 (removed unnecessary sprites and combined all pieces into one sprite instead of a seperate sprite for each color) - this nearly doubled the processing speed of the program and it is much faster now v5 - 9/13/2016 (fixed a bug with the difficulty selector) v6 - 10/20/2016 (added the ability to click the colors to change them instead of typing - in beta testing) v7 - 10/31/2016 (minor bug fixes to the beta version of the Click function) v8 - 11/2/2016 (finalized the Click function so it should work nearly 100% of the time) v9 - 12/7/2020 (fixed weird clone stamp error at the end and also added ability to quickly play another round without having to go through all of the beginning dialogue again)