Playing "Moo" AKA "Bulls & Cows" in Mathcad Prime | Game Gallery

Опубликовано: 30 Август 2026
на канале: Mathcad, a PTC Technology
516
0

Your favourite Mathcad channel manager plays the deductive reasoning codebreaker game, Bulls and Cows, that he recreated in PTC Mathcad Prime 10 for the Mathcad Community Challenge Summer 2024: Game Gallery. You can download the game and participate in the challenge, too! Let us know your strategy and best scores in the comments section.

Bulls and Cows features an Advanced Controls Check Box that determines if the random number has duplicate digits, a Mathcad if-else program based on that checkbox that generates a four-digit number (that may or may not be with duplicates), two Button controls (a guess counter that resets your guess count too and an answer confirmer), an Advanced Controls Text Box to put in your answer that checks your inputs for validation (if you input something that isn't a number or input something that is over four characters, it'll revert your input), and another Text Box that is read-only that provides text feedback and colour-changing feedback based on how close your guess is to the right answer that also shows a pop-up message when you win. There is an additional read-only Text Box that displays many guesses you've had.

"MOO" aka "Bulls and Cows" download: https://community.ptc.com/sejnu66972/...
Mathcad Community Challenge Summer 2024: Game Gallery overview: https://community.ptc.com/t5/Mathcad/...

Watch the replay for the Advanced Controls Crash Course so you can learn how to use Advanced Controls like this too: http://ptc.co/SMv550T53SO

Don't have PTC Mathcad Prime 10 yet? You can download it for free at https://www.mathcad.com/trial

Game Gallery write-up blog: https://www.mathcad.com/en/blogs/comm...

00:00 What is this?
01:55 Game 1 Non-Duplicates
08:11 Game 2 Duplicates
14:30 Concluding analysis