[–] [S] 1 point 1 year ago*

Here the correct walk-through:

MOVE: MOVE: MOVE:

[T1][B1][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

LEFT:

[T1][B1][F][B2][T2] (B1 and B2 face left)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

IF FLOWER: RIGHT

[T1][B1][F][B2][T2] (Only true for B2; B2 now faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

RIGHT

[T1][B1][F][B2][T2] (B1 faces up, B2 faces right)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

RIGHT

[T1][B1][F][B2][T2] (B1 faces right, B2 faces down)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

IF FLOWER: LEFT

[T1][B1][F][B2][T2] (Only applies for B1; now faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

LEFT

[T1][B1][F][B2][T2] (B1 faces left, B2 faces right)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]

MOVE

[B1][  ][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
  • source
  • parent
  • context
  • [–] [S] 0 points 1 year ago (3 children)

    That's how it would play out:

    MOVE: MOVE: MOVE:

    [T1][B1][F][B2][T2]
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    LEFT:

    [T1][B1][F][B2][T2] (B1 and B2 face left)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    IF FLOWER: RIGHT

    [T1][B1][F][B2][T2] (Only true for B2)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    RIGHT

    [T1][B1][F][B2][T2] (B1 faces left, B2 faces up)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    RIGHT

    [T1][B1][F][B2][T2] (B1 faces up, B2 faces right)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    IF FLOWER: LEFT

    [T1][B1][F][B2][T2] (Doesn't apply for them both)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    LEFT

    [T1][B1][F][B2][T2] (B1 faces left, B2 faces up)
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    MOVE

    [B1][  ][F][B2][T2]
    [ ][G][ ][G][ ]
    [#][ ][#][ ][#]
    [ ][ ][F][ ][ ]
    [F][ ][ ][ ][F]
    

    No, that doesn't do the trick. But thanks for trying it out ;) Maybe want to give it another try?

  • source
  • parent
  • context
  •  

    cross-posted from: https://feddit.org/post/14593429

    Factorial Calculator

    Difficulty: Expert

    Game Overview

    Design a physical track where a marble rolls and executes programming instructions. The marble carries a value and performs calculations as it hits different track pieces.

    Puzzle

    Calculate the factorial of 4 (4! = 4 × 3 × 2 × 1) and output the result 24.

    Starting Conditions:

    • Marble begins carrying the value: 4
    • Expected output: 24

    Available Track Pieces (Use Each Once):

    • 2× CURVE - Changes marble direction 90°
    • 1× STRAIGHT - Continues marble in same direction
    • 1× LOOP-TRACK - Connects track to form a physical loop
    • 1× BRANCH-ZERO - Marble goes LEFT if carrying 0, RIGHT otherwise
    • 1× SUBTRACT-1 - Subtracts 1 from marble's value
    • 1× MULTIPLY - Multiplies marble's value by memory slot A
    • 1× STORE-A - Saves marble's current value to memory slot A
    • 1× LOAD-A - Loads value from memory slot A into marble
    • 1× OUTPUT - Displays marble's current value
    • 1× HALT - Stops the marble

    Rules:

    • Arrange all track pieces to create a complete path
    • Marble executes instructions when rolling over pieces
    • Design must calculate factorial using the loop mechanism
    • Marble must output 24 and then halt

    Goal

    The marble completes its journey, outputs 24, and stops.

    submitted 1 year ago* (last edited 1 year ago) by [M] to c/zach_like_on_paper@feddit.org
     

    Factorial Calculator

    Difficulty: Expert

    Game Overview

    Design a physical track where a marble rolls and executes programming instructions. The marble carries a value and performs calculations as it hits different track pieces.

    Puzzle

    Calculate the factorial of 4 (4! = 4 × 3 × 2 × 1) and output the result 24.

    Starting Conditions:

    • Marble begins carrying the value: 4
    • Expected output: 24

    Available Track Pieces (Use Each Once):

    • 2× CURVE - Changes marble direction 90°
    • 1× STRAIGHT - Continues marble in same direction
    • 1× LOOP-TRACK - Connects track to form a physical loop
    • 1× BRANCH-ZERO - Marble goes LEFT if carrying 0, RIGHT otherwise
    • 1× SUBTRACT-1 - Subtracts 1 from marble's value
    • 1× MULTIPLY - Multiplies marble's value by memory slot A
    • 1× STORE-A - Saves marble's current value to memory slot A
    • 1× LOAD-A - Loads value from memory slot A into marble
    • 1× OUTPUT - Displays marble's current value
    • 1× HALT - Stops the marble

    Rules:

    • Arrange all track pieces to create a complete path
    • Marble executes instructions when rolling over pieces
    • Design must calculate factorial using the loop mechanism
    • Marble must output 24 and then halt

    Goal

    The marble completes its journey, outputs 24, and stops.

     

    cross-posted from: https://feddit.org/post/14591777

    Game Description:

    PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. The key challenge is that ALL bugs run the SAME program simultaneously!

    Puzzle:

    Available instructions:

    • MOVE - move forward one cell
    • LEFT / RIGHT - rotate 90 degrees
    • IF FLOWER - execute next line only if flower ahead
    • IF EMPTY - execute next line only if path clear
    • IF WALL - execute next line only if wall ahead
    • IF GEM - execute next line only if gem ahead

    Board:

    Legend:

    • Flower (blocks movement)
    • Gem (collectable)
    • Wall (blocks movement)

    Goal:

    Write a single program that guides both bugs to collect gems and reach their targets safely.

    view more: next ›