Format fixes in 1994/horton/README.md
This commit is contained in:
1 parent
32c87d3113
commit
84c15f57fc
1 file changed
+27
-13
+27
-13
@@ -11,33 +11,46 @@
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
## To run
|
## To run:
|
||||||
|
|
||||||
|
```sh
|
||||||
./horton A B C D
|
./horton A B C D
|
||||||
|
```
|
||||||
|
|
||||||
A, B, C, D are numeric arguments (try 3 2 1 0).
|
A, B, C, D are numeric arguments.
|
||||||
|
|
||||||
## Judges' comments
|
## Try:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./horton 3 2 1 0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Alternative code:
|
||||||
|
|
||||||
|
This confuses cb greatly. See [horton.alt.c](horton.alt.c) for an unobfuscated/enhanced
|
||||||
|
version. To run this alternate version:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make horton.alt
|
||||||
|
./horton.alt A B C D
|
||||||
|
```
|
||||||
|
|
||||||
|
(Use `horton.alt` as you would `horton` above.)
|
||||||
|
|
||||||
|
|
||||||
|
## Judges' comments:
|
||||||
|
|
||||||
Try to figure out how this program prints, for a given slope, the
|
Try to figure out how this program prints, for a given slope, the
|
||||||
right character. And for extra credit, try to figure out which
|
right character. And for extra credit, try to figure out which
|
||||||
character is at the bottom on this hint file. :-)
|
character is at the bottom on this hint file. :-)
|
||||||
|
|
||||||
This confuses cb greatly. See horton.alt.c for an unobfuscated/enhanced
|
|
||||||
version. To run this alternate version:
|
|
||||||
|
|
||||||
make horton.alt
|
|
||||||
./horton.alt A B C D
|
|
||||||
|
|
||||||
A, B, C, D are numeric arguments (try 3 2 1 0).
|
|
||||||
|
|
||||||
## Author's comments
|
## Author's comments
|
||||||
|
|
||||||
Run it with any 4 numeric arguments, e.g. prog 3 2 1 0. Play with the
|
Run it with any 4 numeric arguments, e.g. prog 3 2 1 0. Play with the
|
||||||
numbers to get a pleasing result, or use it for your high school algebra
|
numbers to get a pleasing result, or use it for your high school algebra
|
||||||
class.
|
class.
|
||||||
|
|
||||||
SPOILER:
|
### SPOILER:
|
||||||
|
|
||||||
As should be obvious from 20 feet away, the program is a cubic plotter.
|
As should be obvious from 20 feet away, the program is a cubic plotter.
|
||||||
It plots against certain artists, splattering their cubes with graphs
|
It plots against certain artists, splattering their cubes with graphs
|
||||||
@@ -47,7 +60,7 @@
|
|||||||
Oh, by the way, it uses a self-contained graphtab and frame buffer.
|
Oh, by the way, it uses a self-contained graphtab and frame buffer.
|
||||||
It's easily modified to graph *any* 96x160 bitmap on a dumb terminal.
|
It's easily modified to graph *any* 96x160 bitmap on a dumb terminal.
|
||||||
|
|
||||||
See the gtface program for another example. Try:
|
See the [gtface](gtface.c) program for another example. Try:
|
||||||
|
|
||||||
make gtface
|
make gtface
|
||||||
./gtface < gtface.data
|
./gtface < gtface.data
|
||||||
@@ -56,6 +69,7 @@
|
|||||||
Using GraphTab; USENIX ;login:
|
Using GraphTab; USENIX ;login:
|
||||||
Sept/Oct 1992; Pages 28-31
|
Sept/Oct 1992; Pages 28-31
|
||||||
|
|
||||||
|
|
||||||
MMMM,M,MM"MM,,,
|
MMMM,M,MM"MM,,,
|
||||||
,,MMMMMMMMM"""""""",
|
,,MMMMMMMMM"""""""",
|
||||||
,MMMMM""" ",
|
,MMMMM""" ",
|
||||||
|
|||||||
Reference in new issue
Block a user