Improve how to redefine macros in 2012/endoh1 alt
Now one can use variables SLEEP, TIMER, GRAVITY, PRESSURE and VISCOSITY,
rather than single letter variables. This is like other commits where
instead of having to redefine CDEFINE one can do something like
make clobber SLEEP=50 GRAVITY=I TIMER=15 alt
Notice that some can be set to I rather than a number. See the author's
remarks for details.
The try.alt.sh script was updated for this improvement.
This commit is contained in:
1 parent
26edb2a70a
commit
cca76ebe93
4 files changed
+29
-21
No files matched your search
+9
-6
@@ -3359,13 +3359,16 @@ Cody also added two [alt versions](/2012/endoh1/README.md#alternate-code) that
|
||||
let one control how fast the fluid moves (how long to sleep in between writes)
|
||||
and also the gravity factor, the pressure factor and the viscosity factor as
|
||||
well as an alarm that lets one run it in a loop without having to hit
|
||||
ctrl-c/intr in between (the alarm can be disabled, however). The two different
|
||||
versions is because there are two versions: the original and the colour version
|
||||
added by the author, [Yusuke](#yusuke), at the request of the judges.
|
||||
ctrl-c/intr in between (the alarm can be disabled, however). The Makefile allows
|
||||
one to easily do this with variable names rather than redefining `CDEFINE`.
|
||||
|
||||
Cody also added the [try.alt.sh](/2012/endoh1/try.alt.sh) script compiles the alt
|
||||
code in two ways, one with setting the gravity factor to `I` and another with
|
||||
the default, and which is run on the source file and each of the text files
|
||||
The two different alt versions is because there are two versions: the original
|
||||
and the colour version added by the author, [Yusuke](#yusuke), at the request of
|
||||
the judges.
|
||||
|
||||
Cody also added the [try.alt.sh](/2012/endoh1/try.alt.sh) script that compiles
|
||||
the alt code in two ways, one with setting the gravity factor to `I` and another
|
||||
with the default, and which is run on the source file and each of the text files
|
||||
supplied by the author. This code has an alarm set at 10 seconds so that one
|
||||
need not hit ctrl-c/intr in between .. say to make it more fluid :-)
|
||||
|
||||
|
||||
Reference in new issue
Block a user