ScratchData LogoScratchData
Back to peekir's profile

Mastermind

PEpeekir•Created July 16, 2020
Mastermind
20
11
144 views
View on Scratch

Instructions

Welcome to Mastermind. I am the code maker. Best of luck cracking my code. . . . . . [Text of instructions spoken in game] I have set a four color code. Guess the code by clicking on the colors in sequence. After you have selected four colors, I will check your sequence. A red indicator means one of your selections was the correct color in the correct position. A white indicator means one of your selections was the correct color, in the wrong location. You have ten attempts to crack the code. Good luck!

Description

Getting Unstuck 2020: Day 9 Create a project that does something interesting with a list. This is probably my favorite Getting Unstuck project yet. I love playing this game, and trying to recreate a mechanic that already exists helped me think more deeply about how I think while playing the game and how I might use lists to recreate that. It was easy to check for reds (guess position 1 = answer position 1 = red) but checking for whites was harder, and took some troubleshooting to make sure I wasn't "double counting" pegs. The code is pretty bulky, as a lot of it was me figuring out bit by bit and then snapping it together. If I was going to keep working on this, I would spend time using "MyBlocks" to clean that up a bit. I might also experiment with the number of possible colors and length of the sequence to make the game easier or harder. I put in a cloud variable to track user's wins and losses so I can see if changing the difficulty would be useful. Mastermind, the board game, was invented in 1970 by Mordecai Meirowitz, an Israeli postmaster and telecommunications expert. (Wikipedia)

Project Details

Project ID411998185
CreatedJuly 16, 2020
Last ModifiedOctober 15, 2024
SharedJuly 16, 2020
Visibilityvisible
CommentsAllowed