The main goal of the game is to find the ultimate pattern of color the computer has chosen

1. After the game starts, the computer will choose any random 4 colors for 4 cirlces.
How the computer chooses?
  • Computer will only choose 4 colors from 6 colors available in the color-picker given to you(i.e., red, blue, green, yellow, sky-blue, hot-pink).
  • The computer may choose same color as many time as it wants. Like (red, red, blue, green) , (red, red, red, red) are also possible patterns.
2. Your job is to crack the exact combination of colors in respective order.
You will be given 12 chances to do so!
3. Now, there are 6*6*6*6 = 1296 possible patterns. So how can you guess in just 8 rounds? That is why, after each turn when you click the 'check button' you will be given hints in the 'check-circles'(only appear after 'check' is clicked) based on the patterns you have guessed.
4. Understanding the hints!
  • If you choose a color for a cirlce and the color is present in the list of 4 colors, the computer has picked,any one of the 'check circles' will be colored 'black'.

  • If you choose a color for a cirlce and the computer has also picked the same color for the same circle, then any one of the 'check circles' will be colored 'violet'.

  • If you choose a color for a circle and the color is not at all present in the list of 4 colors, the computer has picked, any of the 'check circles' will be kept 'white'.

  • Ex : Computer Picked : (red, blue, red, green)
    • If you pick (red, green, hot-pink, red)
      Then 2 of any check circles will be colored 'black' indicating your choices green and last red ; 1 of any check cirlces will be colored 'violet' indicating your choice first red ; any one check circle will be kept 'white' indicating your choice 'hot-pink'.

    • If you pick (red , red, red, red) ; any 1 of the four check circles will be 'violet' indicating the first red of yours. Remaining three check circles will be 'black' indicating your remaining three red choices. [caution : That doesn't mean there are four red colors in the computer's choice ,In that case you would have get all 'violet']
The idea of the game is from a board game named Mastermind invented in 1970 by Mordecai Meirowitz, a Israeli postmaster and telecommunication expert.