First, a 4-digit code is generated. Then you try to guess it in as few attempts as you can. Type your guess with number keys, then press the enter key. Press left arrow to delete if you make a mistake. Use up and down arrow to scroll through your attempts, since only nine attempts will fit on the screen. For mobile friendly, use this project: https://scratch.mit.edu/projects/1164393541/ If a number stays white, it's not used in the code. If it turns red, it's in the code, but not in the correct place. If the number turns green, it's correct and in the right place. You only have 10 attempts to guess the code.
I made this project all by myself in 3 days. Also, if you want to know how to type with an outline, that’s a technique I figured out in 2024. 1. Type in the filling color. 2. Click the “Select” option and add an outline. And if you’re wondering how I can sense the “enter” key, that’s also easy. 1. Get a “join” block. ( join ( ) ( ) ) 2. Join “enter” and “ “. ( join ( enter ) ( ) ) 3. Place the “join” block into a “key pressed?” block. < key ( join ( enter ) ( ) ) pressed? > This doesn’t work with shift or delete. That’s why you have to use left arrow to erase the last number.