Format fix 2006/toledo1/README.md

This does not include possible typos as I'm unsure about something in
particular. This will be addressed later.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-30 12:16:18 -07:00
1 parent 1ebb19e76d
commit d2c3ded4f9
1 file changed
+14 -12
+14 -12
View File
@@ -1,10 +1,7 @@
# Best Small Program # Best Small Program
Oscar Toledo Oscar Toledo
Av. Santa Cruz del Monte 9-304 Mexico
Ciudad Satelite. Edo. de Mexico
CP. 53110
Mexico
## To build: ## To build:
@@ -15,9 +12,12 @@ make
## To run: ## To run:
```sh ```sh
./toledo1 twodigits ./toledo1 [0-9][0-9]
``` ```
where `[0-9][0-9]` is a two digit number.
## Try: ## Try:
```sh ```sh
@@ -42,14 +42,16 @@ to visit the 64 squares without repeating them?
If not, this program does it, just run it with an argument If not, this program does it, just run it with an argument
giving initial position. giving initial position.
./toledo1 11 (start is A8) ```sh
./toledo1 18 (start is H8) ./toledo1 11 # start is A8
./toledo1 81 (start is A1) ./toledo1 18 # start is H8
./toledo1 88 (start is H1) ./toledo1 81 # start is A1
./toledo1 44 (start is D5) ./toledo1 88 # start is H1
./toledo1 44 # start is D5
```
It will print move order. The algorithm is so simple that you can read It will print move order. The algorithm is so simple that you can read
it on the source code, at the first glance it can appear checkered :-) it in the source code, at the first glance it can appear checkered :-)
but don't dismail, jar, jar. but don't dismail, jar, jar.
## Copyright and CC BY-SA 4.0 License: ## Copyright and CC BY-SA 4.0 License: