From dd6b61333ff29e694032280ca46dc7b966c2981a Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Fri, 4 Feb 2022 00:53:00 +0100 Subject: [PATCH] Add standings file to get moo running. (#233) Recently Wordle has piqued the interest of many (like me): https://www.powerlanguage.co.uk/wordle/ A recent video by Tech Tangents links Wordle to Master Mind and also mentions it being based on Bulls and Cows or Moo: https://www.youtube.com/watch?v=rLUmER9dn9A&t=141s https://en.wikipedia.org/wiki/Bulls_and_Cows#The_numerical_version Judging by the assembler listing I thought moo.s might be an implementation of the game for PDP-7 UNIX. I debugged the game deduced why it exits early. The game statistics are saved in the file moostat. Prior to this commit there was no such file which caused moo to exit immediately at start. Now, once the file exists, the game can run successfully. This is how to play the game: 1. after having logged in as ken, enter "moo" ENTER at prompt 2. moo asks "wru?" which means "who are you?" 3. answer "ken" ENTER 4. moo says "name not found; enter?" 5. answer "y" to participate in the game 6. moo says "ready?" 7a. answer "s" to see the current standings between participants listing name, number of games, average guesses, average time 7b. answer "a" to see your average, showing number of games, average guesses and average time 7c. answer "r" to reset the game from step 2 above 7d. answer "q" to quit the game if you wish 8. answer "y" to begin the game 9. moo generates a secret number that you must guess 10. enter a four digit number like "2874" and press ENTER 11. if your guess is correct, moo says "g= t=