http://www.kasajian.com/2008/12/tetris-in-microsoft-small-basic.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |