From b93b872ad33f0b3969a5086783e5c403125fcfb3 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:25:47 -0700 Subject: [PATCH] Swap alt/main in 1996/eldby to run/try This is one of the rare cases where the alternate version is preferable in modern systems as it moves way too fast to see what is going on and it can also be a problem for many because it flashes by too quickly. Added to CSILENCE -Wno-implicit-int. --- 1996/eldby/Makefile | 2 +- 1996/eldby/README.md | 39 ++++++++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/1996/eldby/Makefile b/1996/eldby/Makefile index d11bd9703..f5e649969 100644 --- a/1996/eldby/Makefile +++ b/1996/eldby/Makefile @@ -39,7 +39,7 @@ include ../../var.mk # Common C compiler warnings to silence # CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \ - -Wno-return-type -Wno-unsequenced -Wno-strict-prototypes + -Wno-return-type -Wno-unsequenced -Wno-strict-prototypes -Wno-implicit-int # Common C compiler warning flags # diff --git a/1996/eldby/README.md b/1996/eldby/README.md index 3b6e93a84..9b2ca8c63 100644 --- a/1996/eldby/README.md +++ b/1996/eldby/README.md @@ -1,43 +1,52 @@ # Best Output -Thor AAge Eldby -European Technology Partner -Roedtvetvn 20 (Home address) -0955 Oslo +Thor Eldby
Norway ## To build: ```sh -make all +make alt ``` ## To run: ```sh -./eldby +./eldby.alt ``` -WARNING: on modern systems this is very fast and could be a problem for those -susceptible to photosensitivity. Please try this one with caution if this -applies to you! The same goes for people who can be overstimulated. See below -for alternate version if you want to see it go slower or if seeing things move -by too fast is a problem for you. +To see why we recommend the alternate version instead of the original version, +see the [original code](#original-code) section. NOTE: to reset the sanity of your terminal after this program ends try `reset`. +## Try: -### Alternate code: - -The default sleep duration is `35000` but you can change it at compilation like: +This alternate version, which we recommend that you use in order to see what is +happening with modern systems, and to not flash too quickly, which can be +problematic for some people, can be configured to different speeds by way of the +value used in `usleep()`. The default is `-DZ=35000` but you can easily change +it. To do so try: ```sh make CFLAGS+="-DZ=20000" clobber alt +./eldby.alt ``` -Use `eldby.alt` as you would `eldby`. +### Original code: + +Besides the fact that modern systems make it impossible to see what this program +does the rapid movement can be a problem for some people. It is for these +reasons that we recommend you first try the alternate version as described +above. If however you wish to see the original version in modern systems, try: + +```sh +make all +``` + +Use `./eldby` as you would `./eldby.alt` above. ## Judges' remarks: