Tiny 3x3 Hammer

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.
User avatar
[object Object]
Posts: 70
Joined: Fri Dec 02, 2022 12:37 am

Tiny 3x3 Hammer

Post by [object Object] »

Tiny 3x3 Hammer

As the title suggests, this is yet another hex to break all of the blocks in a 3x3 square around the block you're looking at, aligned to the targeted block face. The unique thing about this hex is that it's very small (33 patterns with the outer intro/retro) and doesn't use an embedded vector field.

The hex works by using MoreIotas to generate rotation matrices at intervals of 0.8125 radians (~46.55°), which is close enough to 45° to land inside all 8 blocks adjacent to the center block. It applies each of these rotation matrices to a vector which is perpendicular to Architect's Distillation, adds the rotated offset vector to the center block, and breaks the result.
Patterns
qqqqaqaaqaqwaaadadaawweddwaaddqddwqaawddaadadaawqaqqqqqqqqqeewdweddwddqaawaaweqqwawqaawawwaeawwawawddwaaeaaqeeeeeaaeaaeqqqqqwaqawawwaeawwwaawqaqqqqqeeeNumerical Reflection: 0.8125Numerical Reflection: 9aadaadaaeqqwawqaawNumerical Reflection: 8ewdqdwedadadeee

Code: Select all

{
    Mind's Reflection
    Compass' Purification
    Mind's Reflection
    Alidade's Purification

    Dioscuri Gambit
    Architect's Distillation
    Rotation Gambit II
    Archer's Distillation

    Dioscuri Gambit
    Break Block

    {
        Muninn's Reflection
        Undertaker's Gambit
        Additive Distillation
        Huginn's Gambit
        Rotation Distillation

        Rotation Gambit
        Vector Disintegration
        Rotation Gambit
        Vector Exaltation

        Multiplication Distillation: Matrix
        Additive Distillation
        Break Block
    }

    Numerical Reflection: 0.8125 <SOUTH_EAST aqaaqwddwddwd>
    Numerical Reflection: 9
    Gemini Gambit
    Huginn's Gambit

    Numerical Reflection: 8
    Flock's Gambit
    Thoth's Gambit
}
Last edited by [object Object] on Tue Sep 19, 2023 6:45 pm, edited 1 time in total.
JohnDog3112
Posts: 1
Joined: Mon Sep 18, 2023 7:53 pm

Tinier 3x3 Hammer

Post by JohnDog3112 »

In response to Object's challenge, I have created a version of the 3x3 hammer with the same specifications as above, except it fits within 25 patterns.

Requirements: hex kinetics (for span pattern)

How the spell works (step by step):
  1. Gets the block the caster is looking at then floors it and adds 1 to the y (fixes weird spanning distillation thing) (might be fixed later, if so, this reduces down to 22 patterns)
  2. Gets the face of the block, duplicates it, and then does the following two steps:
    1. Breaks down the vector into numbers and then adds them all up. Since only one axis isn't 0, this gets that value.
    2. Subtracts the face vector by that number so the other two axis have either 1,1 or -1,-1
  3. Then, it duplicates both the block pos and the new vector. For one block pos it adds it, the other it subtracts to get the two corners
  4. Gets the span of all blocks in between
  5. Thoth's over span to break the blocks
Spoiler
qqqqaqqqqqeeeqaqaaqaqwaaadadaawwqaawddewqqqqqqewwaawddqddweddwaaaadaaqeeeeewaawwaawwddwaadadaawwaawddqddwddwqaqeeqaqdadad

Code: Select all

{
  Break Block
}
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Dioscuri Gambit
Archer's Distillation
Floor Purification
Vector Reflection +Y
Additive Distillation
Rotation Gambit II
Architect's Distillation
Gemini Decomposition
Vector Disintegration
Additive Distillation
Additive Distillation
Subtractive Distillation
Dioscuri Gambit
Additive Distillation
Rotation Gambit II
Subtractive Distillation
Span Distillation
Thoth's Gambit
User avatar
Snazz
Posts: 8
Joined: Wed Dec 14, 2022 11:34 pm

Re: Tiny 3x3 Hammer

Post by Snazz »

Ooh a compacting challenge. Very fun, I managed to get it down to 21 patterns.

Requirements: hex kinetics (Sphere Distillation)

The spell works by using the intersection of two spheres to get the list of coordinates in the 3x3, Then breaks all the blocks with Thoth. One sphere's center is 1 block in front of the wall, and the other sphere's center is 1 block behind it. They both have a radius of 1.75.
Spoiler
qqqqaqqqqqeeeqaqaaqaqwaaadadaawwqaawddddqddweddwaaaadadaawwaawNumerical Reflection: 1.75qqqqqeddedqddqddwddwNumerical Reflection: 1.75qqqqqeddedqwdweaqadadad

Code: Select all

{
    Break Block
}

Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification

Dioscuri Gambit
Archer's Distillation
Rotation Gambit II
Architect's Distillation

Dioscuri Gambit
Additive Distillation
Numerical Reflection: 1.75
Sphere Distillation
Rotation Gambit II
Subtractive Distillation
Numerical Reflection: 1.75
Sphere Distillation

Intersection Distillation
Thoth's Gambit
User avatar
petrakat
Posts: 10
Joined: Fri Dec 02, 2022 12:02 am

Re: Tiny 3x3 Hammer

Post by petrakat »

The next hexcasting update will be a zero-argument pattern that breaks a 3x3 block pattern where you are looking for maximum golfability

Actually no, if you somehow manage to execute zero patterns in a continuation then it does the hammer thing, for even more golfability
The creator of petrak@'s mods. Partially a test account, partially for me to chat in a non-admin capacity... probably just a test account.
User avatar
[object Object]
Posts: 70
Joined: Fri Dec 02, 2022 12:37 am

Re: Tiny 3x3 Hammer

Post by [object Object] »

In response to my own challenge, here's 19 patterns (21 with the intro/retro).

This builds off of Snazz's sphere idea - we get a 1.75-block sphere around the center of the hammer, and for each point on that sphere, break the block at (((center - point) cross normal) + center). For math reasons, this flattens the sphere into the plane perpendicular to the normal vector, which is exactly what we want. The downside is that each block gets broken 2-3 times.
Patterns
qaqaaqaqwaaadadaawweddwaaddqddwqaawddddqaaqqqwddwwdedwwaawqaqqqqqeeeaaeddNumerical Reflection: 1.75qqqqqeddedqdadad

Code: Select all

Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification

Dioscuri Gambit
Architect's Distillation
Rotation Gambit II
Archer's Distillation
Undertaker's Gambit

{
    Subtractive Distillation
    Division Distillation
    Additive Distillation
    Break Block
}

Prospector's Gambit
Numerical Reflection: 1.75 <SOUTH_EAST aqaaqdwd>
Sphere Distillation
Thoth's Gambit