Ouroboros Quine

Post your coolest Hexcasting creations here.

New topics are NOT for chatting or asking help, put those in the comments of a post or in a different forum.
Akumu9K
Posts: 4
Joined: Tue Mar 18, 2025 6:44 pm

Ouroboros Quine

Post by Akumu9K »

This is a simple ouroboros quine made out of 2 identical quines.
It cycles between them every 2 iterations, so if our quines were named A and B, A would give B, and B would give A.
I dunno any practical uses for this, so I will be leaving that as an exercise to the reader

The Ouroboros Quine Generator:
qqqqqq——eeeqwaeawqqqq——eeeqwaeawqdeaqqeeeqqqqqq——eeeqwaeawqNumerical Reflection: 1aaeddwqaeaqwqqqqqq——eeeqwaeawqqqq——eeeqwaeawqdeaqqeeeaawddNumerical Reflection: 5aawddwqaeaqwNumerical Reflection: 1aawddwqaeaqweeeNumerical Reflection: 1aaeddwqaeaqwNumerical Reflection: 5aawddwqaeaqwNumerical Reflection: 1aaeddwqaeaqw

I used identical quines because I’m lazy, but you can use any quine as long as you keep the section after the quine restructuring intact.
The part that makes it work (You need to transfer this over to any other quine, if you wish to use another quine):
qqqqqq——eeeqwaeawqqqq——eeeqwaeawqdeaqqeeeaawddNumerical Reflection: 5aawddwqaeaqwNumerical Reflection: 1aawddwqaeaqw

Plain code form:
Spoiler

Code: Select all

{
    {
        Bookkeeper's Gambit: -
    }
    Flock's Disintegration
    {
        Bookkeeper's Gambit: -
    }
    Flock's Disintegration
    Hermes' Gambit
}

{
    {
        Bookkeeper's Gambit: -
    }
    Flock's Disintegration
    Numerical Reflection: 1
    Prospector's Gambit
    Surgeon's Exaltation
    {
        {
            Bookkeeper's Gambit: -
        }
        Flock's Disintegration
        {
            Bookkeeper's Gambit: -
        }
        Flock's Disintegration
        Hermes' Gambit
    }
    Jester's Gambit
    Numerical Reflection: 5
    Jester's Gambit
    Surgeon's Exaltation
    Numerical Reflection: 1
    Jester's Gambit
    Surgeon's Exaltation
}

Numerical Reflection: 1
Prospector's Gambit
Surgeon's Exaltation

Numerical Reflection: 5
Jester's Gambit
Surgeon's Exaltation

Numerical Reflection: 1
Prospector's Gambit
Surgeon's Exaltation
Final Structure:
Spoiler

Code: Select all

[
    {
        [
            {
                Bookkeeper's Gambit: -
            }
            Flock's Disintegration
            {
                [
                    {
                        [
                            {
                                Bookkeeper's Gambit: -
                            }
                            Flock's Disintegration
                            Numerical Reflection: 1
                            Prospector's Gambit
                            Surgeon's Exaltation
                            {
                                {
                                    Bookkeeper's Gambit: -
                                }
                                Flock's Disintegration
                                {
                                    Bookkeeper's Gambit: -
                                }
                                Flock's Disintegration
                                Hermes' Gambit
                            }
                            Jester's Gambit
                            Numerical Reflection: 5
                            Jester's Gambit
                            Surgeon's Exaltation
                            Numerical Reflection: 1
                            Jester's Gambit
                            Surgeon's Exaltation
                        ]
                    }
                    Flock's Disintegration
                    Numerical Reflection: 1
                    Prospector's Gambit
                    Surgeon's Exaltation
                    {
                        {
                            Bookkeeper's Gambit: -
                        }
                        Flock's Disintegration
                        {
                            Bookkeeper's Gambit: -
                        }
                        Flock's Disintegration
                        Hermes' Gambit
                    }
                    Jester's Gambit
                    Numerical Reflection: 5
                    Jester's Gambit
                    Surgeon's Exaltation
                    Numerical Reflection: 1
                    Jester's Gambit
                    Surgeon's Exaltation
                ]
            }
            Flock's Disintegration
            Hermes' Gambit
        ]
    }
    Flock's Disintegration
    {
        [
            {
                [
                    {
                        Bookkeeper's Gambit: -
                    }
                    Flock's Disintegration
                    Numerical Reflection: 1
                    Prospector's Gambit
                    Surgeon's Exaltation
                    {
                        {
                            Bookkeeper's Gambit: -
                        }
                        Flock's Disintegration
                        {
                            Bookkeeper's Gambit: -
                        }
                        Flock's Disintegration
                        Hermes' Gambit
                    }
                    Jester's Gambit
                    Numerical Reflection: 5
                    Jester's Gambit
                    Surgeon's Exaltation
                    Numerical Reflection: 1
                    Jester's Gambit
                    Surgeon's Exaltation
                ]
            }
            Flock's Disintegration
            Numerical Reflection: 1
            Prospector's Gambit
            Surgeon's Exaltation
            {
                {
                    Bookkeeper's Gambit: -
                }
                Flock's Disintegration
                {
                    Bookkeeper's Gambit: -
                }
                Flock's Disintegration
                Hermes' Gambit
            }
            Jester's Gambit
            Numerical Reflection: 5
            Jester's Gambit
            Surgeon's Exaltation
            Numerical Reflection: 1
            Jester's Gambit
            Surgeon's Exaltation
        ]
    }
    Flock's Disintegration
    Hermes' Gambit
]