We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Thing of Shock
| Designed by | User:GUAqwq |
|---|---|
| Appeared in | 2026 |
| Computational class | Finite-state automaton |
| Reference implementation | Unimplemented |
| File extension(s) | .ts |
Thing of Shock is an automaton which runs on a directed graph.
Overview
A state of the automaton is represented by a directed graph where each node has a shock counter.
Each step, each node updates according to following rules:
- If the node was in shock (i.e. shock counter is not 0), the counter decrements.
- If the node's counter was 1, it will send eureka to others.
- If the node was already calmed (counter is 0), it counts the amount of eureka received, and set its counter to the amount.
I/O
You may set the original shock counter of each node.
You may read every nodes counter anytime.
Code
You can use any way to describe the graph though, here's a given format:
in1 in2 in3 -> out1 out2 out3
Each word separates by space. No prefix or appendix allowed.
This will creates nodes, and creates connections between all nodes mentioned.
#comment
That's how you comment.
Computational class
Things of Shock has at least the same computing ability as a finite-state automaton. I have discovered a truly marvelous proof of this, which this page is too narrow to contain.
Someone takes the challenge?