1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-03-09 04:19:59 +00:00

8 Commits

Author SHA1 Message Date
Sebastian Rasmussen
dd6b61333f 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=<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
2022-02-03 18:53:00 -05:00
phil
1a35c9146d switch to original commands, alphabetize proto and Makefile 2019-10-29 00:00:55 -04:00
phil
4ffabd8bdf add tmg to src/cmd and image
add doug user to image, put tmg sources there
fix an as7 bug found by tmg
2019-10-28 23:14:16 -04:00
Phil Budne
96dd9d6c06 sys.rc: link to "user" ops.s; needed for maksys & trysys! 2016-03-25 11:05:28 -04:00
Phil Budne
10f0fa9da9 load sys sources into ken directory, along with "sys.rc" file
(run with "sh <sys.rc" to build system files)
errors building maksys and trysys
2016-03-25 01:03:42 -04:00
Warren Toomey
945fa20bae Added rules to build the B compiler and modified proto to install it
as system/bc. Added a b_readme in dmr's home directory to explain
how to compile hello.b.
2016-03-23 22:45:53 +10:00
Phil Budne
1016412831 add system (super) user 2016-03-22 20:07:20 -04:00
Tom Everett
86fcfad57a updated readme, and moved files that end up on the final fs into the /fs dir 2016-03-19 21:42:32 -06:00