(Comp.sources.hp48) Item: 22 by mwormley at nike.calpoly.edu Author: [Matthew Aaron Wormley] Subj: mstmind - Mastermind v1.0 Date: Tue Nov 12 1991 Mastermind v1.0 - By Matt Wormley Here's the classic Logic game, converted for the HP48sx. It converts very well to the calculator since it is essentially a one player game, that is the second player is no more than a 'computer' in his actions, while the other does all the thinking. I wrote this about 6 months ago, but have been too lazy to post it. I saw another version out and I decided to package up mine and put it up. I think you'll like it better. For those of you who have never played Mastermind before - here's how it goes. The calculator will randomly choose 4 colored pegs (red, blue, green, yellow, purple, or orange) to be the 'solution'. You will then make successive guesses until you finally guess the correct solution. You will have a few hints though. After making your guess, the calculator will tell you how many of the 'pegs' in your guess are the correct color in the correct position by giving a black peg for each occurance. It will also tell you how many of the 'pegs' in your guess are the correct color in the incorrect position. EX: Say the solution is -> R B G P and you guess -> O B P G You would recieve 1 black peg and 2 white peg. The blue peg would represent the Blue (B) peg in your guess since the Blue peg in your guess appears in the solution in the same position. The white pegs would represent the Green (G) and Purple (P) pegs in your guess since they do appear in the solution but NOT in the same position. The trick is that even though you have the 1 black and 2 white pegs as clues, you don't know WHICH pegs in your guess that they represent. This is where your logic will help you 'crack the code'. Through successive guesses, you should be able to figure out the solution in less than 10 gueses (I have imperically found that it should be possible to solve it in 6 or less if you are good enough) ENTERING A GUESS: Pretty simple really, after pressing 'PLAY' to start the game, you will soon notice that you must turn the calculator sideways to play the game. The menu keys enter the color of the peg you wish to place in the position that the pointer is pointing to. You move the pointer with the up and down keys (when the calculator is sideways they appear to be left and right) and you enter the guess with the "down key" (the right key in real life) You will get 10 guesses and if after that you haven't gotten it... you lose. That's about the extent of it. I have spent hours in my boring GE classes playing this game I hope you get as much out of it as I have.