From e5bcf2ee25a17b43bf72337f4c07bd60ec7fc9e2 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 1 Jul 2024 06:40:46 -0700 Subject: [PATCH] Rename 2020/ferguson1/deobfuscation -> obfuscation As the file is not actually code and does not give deobfuscated code but rather shows how I obfuscated it (indirectly and directly) a better name, if spoilers will not work, is obfuscation. Thus obfuscation.md and obfuscation.html are the new names. Manifest updated; regenerated .entry.json, index.html and other html files that link to the html file. In a heading/section (in obfuscation.html) I linked to two files that are named. --- 2020/ferguson1/.entry.json | 32 +++++++++--------- 2020/ferguson1/README.md | 6 ++-- 2020/ferguson1/bugs.md | 2 +- 2020/ferguson1/gameplay.html | 2 +- 2020/ferguson1/gameplay.md | 4 +-- 2020/ferguson1/index.html | 8 ++--- .../{deobfuscation.html => obfuscation.html} | 28 +++++++-------- .../{deobfuscation.md => obfuscation.md} | 6 ++-- tmp/manifest.csv | 4 +-- tmp/manifest.numbers | Bin 1343521 -> 1342792 bytes tmp/path_list.built.txt | 2 +- tmp/path_list.found.txt | 4 +-- tmp/path_list.manifest.txt | 4 +-- tmp/path_list.required.txt | 2 +- 14 files changed, 52 insertions(+), 52 deletions(-) rename 2020/ferguson1/{deobfuscation.html => obfuscation.html} (98%) rename 2020/ferguson1/{deobfuscation.md => obfuscation.md} (99%) diff --git a/2020/ferguson1/.entry.json b/2020/ferguson1/.entry.json index 5180a1445..a6d84a236 100644 --- a/2020/ferguson1/.entry.json +++ b/2020/ferguson1/.entry.json @@ -105,14 +105,6 @@ "display_via_github" : false, "entry_text" : "explains various odd screen dumps" }, - { - "file_path" : "deobfuscation.html", - "inventory_order" : 100, - "OK_to_edit" : false, - "display_as" : "html", - "display_via_github" : false, - "entry_text" : "Deobfuscation information about the code" - }, { "file_path" : "gameplay.html", "inventory_order" : 100, @@ -121,6 +113,14 @@ "display_via_github" : false, "entry_text" : "many different gameplay modes described" }, + { + "file_path" : "obfuscation.html", + "inventory_order" : 100, + "OK_to_edit" : false, + "display_as" : "html", + "display_via_github" : false, + "entry_text" : "detailed information about the obfuscation of the code" + }, { "file_path" : "terminals.html", "inventory_order" : 100, @@ -273,14 +273,6 @@ "display_via_github" : true, "entry_text" : "markdown source for crazy.log.html" }, - { - "file_path" : "deobfuscation.md", - "inventory_order" : 4000000000, - "OK_to_edit" : true, - "display_as" : "markdown", - "display_via_github" : true, - "entry_text" : "markdown source for deobfuscation.html" - }, { "file_path" : "gameplay.md", "inventory_order" : 4000000000, @@ -297,6 +289,14 @@ "display_via_github" : false, "entry_text" : "image of Double-layered Chocolate Fudge Cake with 'IOCCC'" }, + { + "file_path" : "obfuscation.md", + "inventory_order" : 4000000000, + "OK_to_edit" : true, + "display_as" : "markdown", + "display_via_github" : true, + "entry_text" : "markdown source for obfuscation.html" + }, { "file_path" : "terminals.md", "inventory_order" : 4000000000, diff --git a/2020/ferguson1/README.md b/2020/ferguson1/README.md index 31dedb272..6e725f07b 100644 --- a/2020/ferguson1/README.md +++ b/2020/ferguson1/README.md @@ -137,7 +137,7 @@ Bugs and things that might seem like bugs but are not. Because most of us could use some *Double-layered Chocolate Fudge Cake*! -* [deobfuscation.html](deobfuscation.html) +* [obfuscation.html](obfuscation.html) Read ***ONLY*** if you really must give up trying to de-obfuscate! @@ -201,7 +201,7 @@ The [terminals.html](terminals.html) has a variety of information specific to terminals from input/directions, dimensions, sanity and colours: a sort of troubleshooting guide for terminals with some additional information. -The [deobfuscation.html](deobfuscation.html) has a variety of information +The [obfuscation.html](obfuscation.html) has a variety of information including some of the obfuscation techniques and a bit of how it works. The [bugs.html](bugs.html) has a list of known bugs and things that @@ -594,7 +594,7 @@ email but I'm more likely to respond to mastodon messages. [troubleshooting.html]: troubleshooting.html [human snakes]: http://www.macroevolution.net/snake-human-hybrids.html [chocolate-cake.html]: chocolate-cake.html -[deobfuscation.html]: deobfuscation.html +[obfuscation.html]: obfuscation.html [Surround]: https://en.wikipedia.org/wiki/Surround_(video_game) [Snake walk: The physics of slithering]: https://www.bbc.co.uk/news/science-environment-35563941 [snake-colours.sh]: snake-colours.sh diff --git a/2020/ferguson1/bugs.md b/2020/ferguson1/bugs.md index 9e20b72ee..ead27ef5e 100644 --- a/2020/ferguson1/bugs.md +++ b/2020/ferguson1/bugs.md @@ -294,7 +294,7 @@ a bug and I prefer putting in restrictions to try and make it very unlikely. [gameplay.html]: gameplay.html [cannibalism.log.html]: cannibalism.log.html [https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms]: https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms -[deobfuscation.html]: deobfuscation.html +[obfuscation.html]: obfuscation.html
MAXSIZE=-1
Which I’ve done in the play.sh script.
-I discuss how this mode works in deobfuscation.html.
+I discuss how this mode works in obfuscation.html.
Here’s an example run where I spelt ‘SNAKE’. As you can see it’s far from perfect: the snake after all does not leave gaps and the game does not support diagonal movement and I also made a mistake and had to modify what I was aiming diff --git a/2020/ferguson1/gameplay.md b/2020/ferguson1/gameplay.md index ff1e76864..9912b5206 100644 --- a/2020/ferguson1/gameplay.md +++ b/2020/ferguson1/gameplay.md @@ -554,7 +554,7 @@ could also set the max size to be the highest possible by saying Which I've done in the [play.sh][] script. -I discuss how this mode works in [deobfuscation.html][]. +I discuss how this mode works in [obfuscation.html][]. Here's an example run where I spelt 'SNAKE'. As you can see it's far from perfect: the snake after all does not leave gaps and the game does not support @@ -913,7 +913,7 @@ years ago but I know it's true now. **Believe in yourself. Always.** [terminals.html]: terminals.html [troubleshooting.html]: troubleshooting.html [bugs.html]: bugs.html -[deobfuscation.html]: deobfuscation.html +[obfuscation.html]: obfuscation.html [snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh [number of hertz (flashes) per second triggering seizures]: https://www.epilepsysociety.org.uk/photosensitive-epilepsy#.Xjgpwi2ZOgQ [termcaps.c]: %%REPO_URL%%/2020/ferguson1/termcaps.c diff --git a/2020/ferguson1/index.html b/2020/ferguson1/index.html index 06b0cfa06..b7ddd8a2c 100644 --- a/2020/ferguson1/index.html +++ b/2020/ferguson1/index.html @@ -507,7 +507,7 @@ This game has a number of configurable pitfalls including walls and snakes.
Because most of us could use some Double-layered Chocolate Fudge Cake!
Read ONLY if you really must give up trying to de-obfuscate!
The terminals.html has a variety of information specific to terminals from input/directions, dimensions, sanity and colours: a sort of troubleshooting guide for terminals with some additional information.
-The deobfuscation.html has a variety of information +
The obfuscation.html has a variety of information including some of the obfuscation techniques and a bit of how it works.
The bugs.html has a list of known bugs and things that look like bugs but aren’t as well as documenting a built-in test unit for some @@ -912,8 +912,8 @@ email but I’m more likely to respond to mastodon messages.
In the gameplay.html file I have given enough information to know how the game looks, how to move the snake, how to pause etc. @@ -405,7 +405,7 @@ already knew that so no harm there, hey?
V anyway? It’s U + 1; and U
-There are a few differences in this version that are worth noting. First of all is a define that’s in the compiler invocation Makefile is in the source file itself. Second are the following obfuscation techniques. To simplify integrating @@ -1069,7 +1069,7 @@ done elsewhere? I had:
attroff(m(PAIR(L)));
h && attron(m(PAIR(L)));
That saved two bytes.
-Second let’s look at the B() function: there were two things I thought of that
+
Next let’s look at the B() function: there were two things I thought of that
would save some bytes (I no longer know how many but a few at least possibly six
or even more). I had the following code:
if (V && U && o) { S(N); b(1); }
@@ -1132,7 +1132,7 @@ matter having a ‘o’ at 0,0 isn’t either).
https://creativecommons.org/licenses/by-sa/4.0/
-->
-
+
@@ -1192,7 +1192,7 @@ matter having a ‘o’ at 0,0 isn’t either).
diff --git a/2020/ferguson1/deobfuscation.md b/2020/ferguson1/obfuscation.md
similarity index 99%
rename from 2020/ferguson1/deobfuscation.md
rename to 2020/ferguson1/obfuscation.md
index 62377e093..6d2bbd62f 100644
--- a/2020/ferguson1/deobfuscation.md
+++ b/2020/ferguson1/obfuscation.md
@@ -20,7 +20,7 @@ already knew that so no harm there, hey?
* [Cannibal collision detection](#cannibalcollision)
* [Collision detection when resizing the window of the game](#resizing)
- [Obfuscation](#obfuscation)
-- [Skinning the snake (i.e., decreasing the iocccsize)](#skinning)
+- [Skinning the snake (i.e. decreasing the iocccsize)](#skinning)
- [A few more interesting size optimisations](#size)
@@ -711,7 +711,7 @@ referring to another property: bitwise AND. For example consider the following:
in this part alone (not to mention other places)!
-# Obfuscation in prog.3.c and prog.3-j.c
+# Obfuscation in [prog.3.c](%%REPO_URL%%/2020/ferguson1/prog.3.c) and [prog.3-j.c](%%REPO_URL%%/2020/ferguson1/prog.3-j.c)
There are a few differences in this version that are worth noting. First of all
is a define that's in the compiler invocation Makefile is in the source file
@@ -891,7 +891,7 @@ But I then saved an extra byte by making it:
That saved two bytes.
-Second let's look at the `B()` function: there were two things I thought of that
+Next let's look at the `B()` function: there were two things I thought of that
would save some bytes (I no longer know how many but a few at least possibly six
or even more). I had the following code:
diff --git a/tmp/manifest.csv b/tmp/manifest.csv
index e1288116d..559a825e2 100644
--- a/tmp/manifest.csv
+++ b/tmp/manifest.csv
@@ -4140,8 +4140,8 @@
2020,ferguson1,cannibalism.log.html,100,false,html,false,shows extreme cannibalism mode output
2020,ferguson1,chocolate-cake.html,100,false,html,false,Double-layered Chocolate Fudge Cake Recipe
2020,ferguson1,crazy.log.html,100,false,html,false,explains various odd screen dumps
-2020,ferguson1,deobfuscation.html,100,false,html,false,Deobfuscation information about the code
2020,ferguson1,gameplay.html,100,false,html,false,many different gameplay modes described
+2020,ferguson1,obfuscation.html,100,false,html,false,detailed information about the obfuscation of the code
2020,ferguson1,terminals.html,100,false,html,false,terminal capabilities and dimensions and colours
2020,ferguson1,troubleshooting.html,100,false,html,false,troubleshooting Snake
2020,ferguson1,prog.2.c,150,true,c,true,source code with more digraphs
@@ -4158,11 +4158,11 @@
2020,ferguson1,cannibalism.log.md,4000000000,true,markdown,true,markdown source for cannibalism.log.html
2020,ferguson1,chocolate-cake.md,4000000000,true,markdown,true,markdown source for chocolate-cake.html
2020,ferguson1,crazy.log.md,4000000000,true,markdown,true,markdown source for crazy.log.html
-2020,ferguson1,deobfuscation.md,4000000000,true,markdown,true,markdown source for deobfuscation.html
2020,ferguson1,.entry.json,4000000000,true,json,true,entry summary and manifest in JSON
2020,ferguson1,gameplay.md,4000000000,true,markdown,true,markdown source for gameplay.html
2020,ferguson1,.gitignore,4000000000,true,gitignore,true,list of files that should not be committed under git
2020,ferguson1,ioccc-cake.jpg,4000000000,true,image,false,image of Double-layered Chocolate Fudge Cake with 'IOCCC'
+2020,ferguson1,obfuscation.md,4000000000,true,markdown,true,markdown source for obfuscation.html
2020,ferguson1,.path,4000000000,false,path,true,directory path from top level directory
2020,ferguson1,terminals.md,4000000000,true,markdown,true,markdown source for terminals.html
2020,ferguson1,troubleshooting.md,4000000000,true,markdown,true,markdown source for troubleshooting.html
diff --git a/tmp/manifest.numbers b/tmp/manifest.numbers
index da0496a5296535e39579fa9ae9460f6bf21ab7fb..6ee52d8c39ed8c88663ede51da4409fa02631ae7 100644
GIT binary patch
delta 47119
zcmcG#cYIq#);F%JZrN7GH@2fBPOzNafk0&uYyH#zzhEar6iYpcS
zQ0-2!a;H!l8NX4QpqLUq%?u_R%%J|2V)ZM9Qp5Ngr531l@Tq4QFewedZ~{g-Fe-pp
z37;wkQ>$7n8aVPARxf(=sNo|5L#BzA_F2TD;0(m#B^jRA ZMw=r#
ztmtIAP_F$J>l${Bd-jN+zM*`0sY&jnjl@J)WqVdefC=}_CrzuS%cir-OU@yy?eYf2
zi1R9@56;*5ZPv3E+{60>9v(SK*7EEju)afeLY%j{AQu)Fx5d?dkAcAwI6+vpw3-pG
zT6J;H?=vgO7>KsFT@GJ^GlB@mUbXdF-Q(O(4EWw26+RpT0La%%
z_x0Q;b5@}P3!B?r*W8
>7_
z(s(_H{T+u}G*D