Update 1993 winning entries' README.md files

Format and typo fixes. Starting with this year I actually did more
thorough typo fixes. It might be that I did some of this in earlier
years too but I am sure I did it for this year and beyond (at least up
through 1995 .. not sure about years beyond that that I have also
edited). Even so I'll probably want to do another pass through all files
before I can say that the typo issue is resolved. That includes possibly
other files and the worst of all files in my entries.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-14 06:25:34 -07:00
1 parent cf4437c508
commit ee4ee3497d
9 files changed
+360 -298

No files matched your search

+52 -41
View File
@@ -1,14 +1,16 @@
# Best Game
Leonid A. Broukhis
Moscow Centre of SPARC Technology
123481 Liberty St.,
89-1-95 Moscow
Russia
Leonid A. Broukhis
Moscow Centre of SPARC Technology
123481 Liberty St.,
89-1-95 Moscow
Russia
## To build:
make all
```sh
make all
```
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to work with
modern compilers. Thank you Cody!
@@ -18,19 +20,23 @@ modern compilers. Thank you Cody!
To have the computer guess:
./leo [colors]
```sh
./leo [colors]
```
To guess the computer's number:
./mind [colors]
```sh
./mind [colors]
```
where:
colors number of possible colors (1 to 15) (default: 6)
[colors] is the number of possible colors (1 to 15) (default: 6)
## Judges' remarks:
By default, the number of colors if 6. You may specify a
By default, the number of colors is 6. You may specify a
value of between 1 and 15 colors. See the author's notes
for instructions of how to play.
@@ -39,8 +45,9 @@ International Internet community.
## Author's remarks:
This program plays mastermind, if you call it by a name ending by
'd', otherwise it _solves_ mastermind. Call it without parameters
This program plays
[Mastermind](https://en.wikipedia.org/wiki/Mastermind_(board_game), if you call it by a name ending by
'd', otherwise it _solves_ Mastermind. Call it without parameters
to use 6 digits (colors), or indicate the number of possible digits
(you cannot change the number of positions so easily).
@@ -48,14 +55,14 @@ The number in parentheses is the number of possible combinations,
based on previous questions and answers. If you solve the puzzle,
"(1)" indicates that your previous moves are enough to give correct
answer. If the program acts as solver and terminates prematurely,
it means that you have mistaken in your answers to its guesses.
it means that you're mistaken in your answers to its question(s).
Question marks indicate the number of digits you have to enter
(either 4 when you guess or 2 when computer guesses).
Note that the program uses the same code for both player and
solver, and the only place where it makes difference is the
solver, and the only place where it makes a difference is the
interactive part. Many obfuscations have been made to achieve
this. An expression giving (bulls * 16 + cows) from two numbers
this. An expression giving `(bulls * 16 + cows)` from two numbers
is, however, quite straightforward :-) , as well as the arithmetic
of binary coded colors-base numbers is.
@@ -66,35 +73,39 @@ backspaces. Do "disable scrolling" on cmdtool or similar emulators.
#### Bugs: Please don't type ^D at the prompt!!
##### EXAMPLE: Suppose we think of 1234:
##### EXAMPLE: Suppose we think of 1234
judges-385> leo
(1296): 6433
?? 12 # one 3 is a bull, another is a cow, and 4 is a cow
(160): 5363
?? 02 # both 3's are cows
(21): 4231
?? 22 # 2 and 3 are bulls, 4 and 1 are cows
(2): 4132
?? 13 # 3 is a bull; 1, 2 and 4 are cows
(1): 1234
?? 40 # you may enter everything there
```
judges-385> ./leo
(1296): 6433
?? 12 # one 3 is a bull, another is a cow, and 4 is a cow
(160): 5363
?? 02 # both 3's are cows
(21): 4231
?? 22 # 2 and 3 are bulls, 4 and 1 are cows
(2): 4132
?? 13 # 3 is a bull; 1, 2 and 4 are cows
(1): 1234
?? 40 # you may enter everything there
```
##### EXAMPLE: Guess the computer's number:
##### EXAMPLE: Guess the computer's number
judges-387> mind
(1296): ???? 1122 # my strategy isn't the best, just as example
00
(256): ???? 3344
20
(18): ???? 5566
02
(6): ???? 3654
11
(2): ???? 3355
00
(1): ???? 6444
40 # we have guessed the number
```
judges-387> ./mind
(1296): ???? 1122 # my strategy isn't the best, just as example
00
(256): ???? 3344
20
(18): ???? 5566
02
(6): ???? 3654
11
(2): ???? 3355
00
(1): ???? 6444
40 # we have guessed the number
```
## Copyright and CC BY-SA 4.0 License: