![][4]
I've been gathering the best resources to teach children & teens programming — books, environments, apps, courseware and games.
open Microsoft.SmallBasic.Library | |
//Guess My Number | |
//1. Computer picks a number between 1 and 100 | |
//2. Player makes a guess | |
//3. Computer tells player if guess was too high or too low | |
//4. If the guess is not correct, go back to 2 | |
//5. When the guess is correct, report how many guesses it took. | |
type GameState = { |