We are currently working on new rules that expand the scope of this website to allow more content, and are looking for feedback! See Esolanging:2026 topicality proposal to view and give feedback on the current draft.
Draft:Would you rather fight 5 23-year olds or 52 3-year olds?
From Esolanging
Jump to navigationJump to search
Would you rather fight 5 23-year olds or 52 3-year olds? is an esoteric programming language derived from User:ais523's BIX Queue Subset a t fd by User:Dragoneater67 in 2026.
Overview
The program and the queue's initial contents are sequences of nonnegative integers. There is also an instruction pointer that begins at the start of the program. The program execution goes like this:
- Dequeue a value from the queue, which will be referred to as n, enqueue n values from the program starting from the instruction pointer, and move the instruction pointer n+1 steps forward. The instruction pointer wraps around if it moves out-of-bounds.
- Go back to step 1.
Examples
A useless example
Program: 1 2 3
Queue: 3 2 1
3 2 1
2 1 1 2 3
1 1 2 3 2 3
1 2 3 2 3 2
2 3 2 3 2 1
3 2 3 2 1 3 1
2 3 2 1 3 1 3 1 2
3 2 1 3 1 3 1 2 1 2
Looping counter
Program: 2
Queue: 2
2
2 2
2 2 2
2 2 2 2
2 2 2 2 2
Implementation
p=[]#productions go here
q=[]#initial queue goes here
i=0
while q:
print(*q)
x=0
while x<q[0]:
q.append(p[(i+x)%len(p)])
x+=1
i+=(q[0]+1)%len(p)
q=q[1:]