What is the game you played? Give a quick summary of how to play. The objective of Mastermind, is to figure out the hidden marble pattern within ten tries to get it right. Using the given coloured marbles, the player can create different patterns to match the hidden code. If the player uses a red marble in one of their…