Files

52 lines
1.3 KiB
Markdown

## To build:
``` <!---sh-->
make all
```
## To use:
``` <!---sh-->
./marangon
```
## Judges' remarks:
The object is to refill the table with `5`s, by incrementing or decrementing
numbers as needed. It is the side effects that get you into trouble. If you
are not careful, you may find things "at `6`s and `7`s". :-)
**NOTE**: Some compilers have had trouble optimizing this entry.
**NOTE**: Some systems need to compile with `-ltermcap` as well as `-lcurses`.
**NOTE**: The original winning source
[marangon.orig.c](%%REPO_URL%%/1992/marangon/marangon.orig.c) assumed that
`exit(3)` returns a value which cause problems for some systems where `exit(3)`
returns a `void`. The file [marangon.c](%%REPO_URL%%/1992/marangon/marangon.c)
avoids this problem.
## Author's remarks:
It starts off by creating a table with the number `5` in all places. The CPU melts
the numbers and you must return them to the original state. When you increase a
number, all the other eight numbers next to it decrease and vice-versa.
<!--
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
You are free to share and adapt this file under the terms of this license:
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
For more information, see:
https://creativecommons.org/licenses/by-sa/4.0/
-->