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.

Light Switch

From Esolang
Jump to navigation Jump to search

this programming language is about light switches

Commands

s, a room with a switch
S, a dark room with a switch
`, a room
~, a dark room
>v<^-|+, wire
e, the end
!, the start

Notes

this is a 2d programming language, and the "person", goes through the rooms,
but runs away from the dark rooms, and switches turn light to dark,
and dark to light, but the wires, also do that when active,
the person always presses the switch

Example

ssssssssssssssssssssssssssss~~~~~~ s~~~~~~~~~~~~~~~~sssssss~~~s~~~~~~ s~!ssss~ssssssssss>>>>vs~~~s~~~~~~ s~~~~~s~s~~~~~~~vs~~~~~~~~vs~~~s~~~~~~ s~sssss~ssss~~~sss~~~~~~~~vs~~~s~~~~~~ s~s~~~~~~~~s~~ss~~~~~~vss~~sssssss s~ssssssssss~~s~~ssssss~s~~~~~~~~s s~~~~~~~~~~~~~~~~~~sss~~~s~~ssssssssss ssssssssssssssss~~~sss~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~s~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ssssss~~sssse~~~~~~~ ~~~~~~~~~~~~~~~~~~s~~~~~~~s~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ss~~~ssss~~~~~~~~~~~ ~~~~~~~~~~~~~~~sssss~~~~~~~~~~~~~~~~~~