Skip to content

Commit dd6b613

Browse files
authored
Add standings file to get moo running. (DoctorWkt#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=<number of guesses> t=<time in some unit>", goto step 6 11. if your guess is not correct, moo says "bc=" followed by two numbers 12. 1st digit is the number of correct digits in the correct place in your guess 13. 2nd digit is the number of correct digits in the wrong place in your guess 14. goto 10
1 parent 86f6b7f commit dd6b613

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

build/fs/moostat

Whitespace-only changes.

build/proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ dd drwr- -1 4
7676
maksys.s frwr- 12 ../src/sys/maksys.s
7777
trysys.s frwr- 12 ../src/sys/trysys.s
7878
sys.rc frwr- 12 fs/sys.rc
79+
moostat frwr- 12 fs/moostat
7980
$
8081
dmr drwr- 14
8182
system l---- 3

0 commit comments

Comments
 (0)