Post Reply 
(12C) Mastermind on HP12c
03-29-2020, 08:07 PM (This post was last modified: 05-03-2020 07:37 PM by Gene.)
Post: #1
(12C) Mastermind on HP12c
There is my first post for the MoHPC

I wrote this program of Mastermind for the HP12c because it's become my usual calculator at work
I had to adapt my original program, initially written for calculators like HP15c and HP41c... So, I adopted a new way !

This is :

- first period with the creation of the code to break (5 digits from 1 to 9)
- entry of the attempt to find the code
- second period with the comparison digit by digit between the code to break and the entry. Black positions to win ! In the same time, creation of 2 virtual arrays (code to find // attempt) of digits with the non-black digits.
- third period to assimilate the active positions in the 2 arrays. White positions in win !
- gives back the result and waits for a new attempt

Attached File(s)
.pdf  HP12C - Mastermind - lmaN pour MoHPC.pdf (Size: 33.18 KB / Downloads: 23)
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
(12C) Mastermind on HP12c - Nihotte(lma) - 03-29-2020 08:07 PM
RE: Mastermind on HP12c - Nihotte(lma) - 04-10-2020, 12:35 PM

User(s) browsing this thread: 1 Guest(s)