(FX-602P) Master Logic - Mastermind - Code-breaking Game with letters display
|
09-23-2024, 10:18 PM
(This post was last modified: 09-23-2024 10:57 PM by Nihotte(lma).)
Post: #1
|
|||
|
|||
(FX-602P) Master Logic - Mastermind - Code-breaking Game with letters display
Hello everyone ! Mastermind is a wellknown game for two players : a codemaker chooses a combination of four or five pegs and the other player will try to break this code. This publication is based on a program I have written for the Casio FX-602P in 2004 : I actualised it on this 09/2024 The FX-602P was a very interesting calculator at its time because it could display messages like a HP41C but it could not manage characters This calculator was also capable of supporting a keystroke while pausing (PAUSE instruction) during program execution I designed this program to accept the entry of attempts as if it were directly the entry of the color. For this, you must enter the color of each pawn of the guess by its number in the ordered list of colors displayed to you by the FX-602P. In fact, you should play with a real board at the side of the calculator. Just key in the 6 (..9) colors of the pegs as you have prepared P0 and P6. For me, Blue is 1 and Orange is 4. Just enter INV P9 to start the program You receive BVJORM→? at display when you can choose your guess and EXE The 602P answers the number of pegs you have found (B) and the number of pegs with only the good color (W) because they are not well-placed The number of attempts is limited to 6 (in P3) The number of pegs in a combination is declared on P1 (with 4) The ordered list of available colors is known by P0 (BVJORM) and the number of colors (6) is known by P2. The display is assumed by P7-->P6 P0 and P2 are linked and must be entered jointly: a list of 6 to 9 colors in P0 and an equivalent number of colors in P2 (6 to 9). Likewise, P0 and P6 are linked: the order of the colors used in P6 coincides with the list of colors which appear in P0. However, P6 can maintain a maximum structure of 9 colors without disturbing the operation of the program. The particularity of P6 is to make the link between the color code (1 for B and 4 for O, for example) through a GOTO instruction according to the content of M00. If the color code does not exist in P6 (1..9), it will be replaced by a hyphen (-) instead of the initial letter of the color. This program manages codes with a length from 4 to 6. If the 602P turns off automatically, you can always resume with P4. See the code below Code:
Here is an example of use for this program: (Please note that your running could generate other values in M01 to M04 : you just have to replace their contents as indicated to follow the tests) Code:
Between preparing this thread, I came across another very interesting thread, and much older as mine, from SlideRule and Gilles The thread also presents a Mastermind program intended for the TI-58 and FX-602P. You will be happy to find it here ! Keep yourself healthy! |
|||
09-25-2024, 08:37 PM
Post: #2
|
|||
|
|||
RE: (FX-602P) Master Logic - Mastermind - Code-breaking Game with letters display
(09-23-2024 10:18 PM)Nihotte(lma) Wrote: Interesting, I just searched "Mastermind" on this site yesterday! I've only played single user Mastermind on a Mattel Electronics "Brain Baffler" https://www.patheos.com/blogs/tinseltalk...ttel-1979/ But I also used paper and pencil to keep track of each entry update. 10B, 10BII, 10C, 11C, 12C, 14B, 15C, 16C, 17B, 18C, 19BII, 20b, 22, 25, 29C, 35, 38G, 39G, 39gs, 41CV, 48G, 97 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)