Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cyclic Tag hole #1152

Open
1231234md5 opened this issue May 4, 2024 · 0 comments
Open

Add Cyclic Tag hole #1152

1231234md5 opened this issue May 4, 2024 · 0 comments
Labels
hole-idea An idea for a new hole. idea

Comments

@1231234md5
Copy link

Description
see https://esolangs.org/wiki/Cyclic_tag_system.

Cyclic tag system is a language with 3 instructions and a data queue:
;: pop a bit at front of the queue;
0: if the bit at the front of the queue is 1, push a 0 bit.
1: if the bit at the front of the queue is 1, push a 1 bit.
the program halts when the queue is empty.

Given a cyclic tag program with a initial data queue of a single 1, print the first 1000 bits removed in the process, or all bits removed if the program halts before removing 1000 bits.
Example input (if any)

011;10;101;
01;0000;000
11;1000000000;

Example output


1011101011100111010111010101011101101010111011001110101110011100111011010101110101101110101100111010110101110101010111010111011001110101100111001110101100111010101011101101011001110101100111011010101110110101011101011011101011001110101010110111010110011101010101110110011101011100111001110101101110101100111010101011101011101100111010110101100111010111001110101110101110011101011011101011001110110101101010111011010110101110011101100111010110101101011100111010111010101011011101011001110011101011001110101010111011001110101110011101011100111010101011101101011001110101010111011010101101110101100111010110011101011010111001110101110101110011101011011101011010110011100111011010101110101110110101100111010110101110011101010101110110101100111001110101110101010111011010101110110011101011101011100111010110111010110101110011101011011101011001110110101011101011011101011001110101101011100111010111010101011101100111010111001110011101011011101011001110110101011101011101100111001110101100111010101011101101
101000010000
1111000000000111000000000100000000011100000000010000000001000000000111000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000011100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001000000000100000000011100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000100000000011100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000111000000000100000000010000000001000000000100000000010000000001
@1231234md5 1231234md5 added hole-idea An idea for a new hole. idea labels May 4, 2024
1231234md5 added a commit to 1231234md5/code-golfcyclic-tag that referenced this issue May 6, 2024
1231234md5 added a commit to 1231234md5/code-golfcyclic-tag that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hole-idea An idea for a new hole. idea
Projects
None yet
Development

No branches or pull requests

1 participant