diff --git a/2018/giles/Makefile b/2018/giles/Makefile index 6d9c86a40..37e9584a0 100644 --- a/2018/giles/Makefile +++ b/2018/giles/Makefile @@ -101,7 +101,7 @@ CDEFINE= #CINCLUDE= -include stdlib.h #CINCLUDE= -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h -#CINCLUDE= -I ${X11_INCDIR} +#CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 CINCLUDE= `${SDL2_CONFIG} --cflags` # Optimization diff --git a/2018/giles/README.md b/2018/giles/README.md index 73cdc233f..cd0585861 100644 --- a/2018/giles/README.md +++ b/2018/giles/README.md @@ -1,27 +1,29 @@ # Most unstable -Edward Giles + Edward Giles -## To build: +# To build: - make all +```sh +make +``` -### To run +### To run: - ./prog +```sh +./prog +``` ### Try: - make +```sh +./prog ioccc.txt +./prog prog.c +./prog sand.txt +./prog sand.alt.txt +``` -### Try: - - ./prog ioccc.txt - ./prog prog.c - ./prog sand.txt - ./prog sand.alt.txt - -### Selected Judges Remarks: +## Judges' comments: Can you explain the behavior of the program when ioccc.txt is given to it as input? @@ -30,13 +32,15 @@ Polynomish to English? You may have to install libsdl2-dev on your system to compile and use this code: - sudo apt install libsdl2-dev # Linux - Something else # MacOS +```sh +sudo dnf install SDL2 # Linux +sudo apt install libsdl2-dev # Debian +brew install sdl2 # MacOS via HomeBrew +``` ## Author's comments: -Remarks -======= +### Remarks This entry graphically displays a simulation of sand falling. It uses SDL to draw the interface. @@ -61,11 +65,10 @@ The preprocessor is used to both obfuscate the code as a whole and abbreviate the calls to SDL. Additionally, throughout the code, the variables were named so that they are short and easily confused with each other. --------------------------------------------------------------------------------- -