diff --git a/1985/lycklama/README.md b/1985/lycklama/README.md index f39e8f3d5..a6deba5c4 100644 --- a/1985/lycklama/README.md +++ b/1985/lycklama/README.md @@ -9,17 +9,19 @@ make all ``` -[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to compile with -modern compilers. In the past 'define' in `#define` could even be defined but to -get this to work on modern systems Cody changed the `#o` lines to `#define`. The -`lycklama.alt.c` is the original source code as it provides some fun input for -the entry. Thank you Cody! With a tip from [Yusuke -Endoh](/winners.html#Yusuke_Endoh) it was indirectly noticed that if one slows -down the call to `write()` one can see some fun output that's not visible with -modern systems so Cody added a call to `usleep()`. The default time is `0` -which disables it (in order to make it as close to original as possible; an alt -version already exists mostly for fun output). In order to change the speed (try -500 or 700) do: +[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to compile +with modern compilers. In the past one could get away with defining some macro +to `#define` and then use `#foo` to have the same effect as using `#define` but +this does not work in modern systems so Cody changed the `#o` lines to +`#define`. The `lycklama.alt.c` is the original source code as it provides some +fun input for the entry. Thank you Cody! + +With a tip from [Yusuke Endoh](/winners.html#Yusuke_Endoh) it was indirectly +noticed that if one slows down the call to `write()` one can see some fun output +that's not visible with modern systems so Cody added a call to `usleep()`. The +default time is `0` which disables it (in order to make it as close to original +as possible; an alt version already exists mostly for fun output). In order to +change the speed (try 500 or 700) do: ```sh make CDEFINE+="-DZ=700" clobber all @@ -27,10 +29,14 @@ make CDEFINE+="-DZ=700" clobber all Thank you Yusuke! +## To run: + +```sh +./lycklama < some_file +``` ## Try: - ```sh ./lycklama < lycklama.c @@ -40,11 +46,13 @@ Thank you Yusuke! ./lycklama < README.md ./lycklama < Makefile + +make CDEFINE+="-DZ=700" clobber all && ./lycklama < lycklama.c ``` ### Alternative code: -If you have an older compiler that lets you define some object to define and +If you have an older compiler that lets you define some object to `#define` and then use it in place of `#define` you can run: ```sh @@ -53,12 +61,6 @@ make alt Use `./lylycklama.alt` as you would `./lycklama` above. -## To run: - -```sh -./lycklama < some_file -``` - ## Judges' remarks: