Last active
December 15, 2024 07:21
-
-
Save sponege/9ac478c3df75369eb137f09c63e5ade9 to your computer and use it in GitHub Desktop.
Advent of Code Day 6 Part 1 (PuzzleScript Script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title Advent of Code 2024 Day 6 Part 1 | |
author sponege | |
homepage github.com/sponege | |
run_rules_on_level_start | |
======== | |
OBJECTS | |
======== | |
Background | |
black | |
Painted | |
green | |
Wall | |
grey darkgrey blue orange lightgray white | |
00000 | |
02230 | |
02220 | |
03220 | |
14500 | |
GuardUp | |
blue | |
..0.. | |
.000. | |
0.0.0 | |
..0.. | |
..0.. | |
GuardRight | |
blue | |
..0.. | |
...0. | |
00000 | |
...0. | |
..0.. | |
GuardDown | |
blue | |
..0.. | |
..0.. | |
0.0.0 | |
.000. | |
..0.. | |
GuardLeft | |
blue | |
..0.. | |
.0... | |
00000 | |
.0... | |
..0.. | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
^ = GuardUp | |
Guard = GuardUp or GuardRight or GuardDown or GuardLeft | |
Player = Guard | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Painted | |
GuardUp, GuardRight, GuardDown, GuardLeft, Wall | |
====== | |
RULES | |
====== | |
[GuardUp] -> [Painted GuardUp] | |
startloop | |
up [ GuardUp | No Wall ] -> [ | Painted GuardUp ] | |
up [ GuardUp | Wall ] -> [ GuardRight | Wall ] | |
right [ GuardRight | No Wall ] -> [ | Painted GuardRight ] | |
right [ GuardRight | Wall ] -> [ GuardDown | Wall ] | |
down [ GuardDown | No Wall ] -> [ | Painted GuardDown ] | |
down [ GuardDown | Wall ] -> [ GuardLeft | Wall ] | |
left [ GuardLeft | No Wall ] -> [ | Painted GuardLeft ] | |
left [ GuardLeft | Wall ] -> [ GuardUp | Wall ] | |
endloop | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
....#..... | |
.........# | |
.......... | |
..#....... | |
.......#.. | |
.......... | |
.#..^..... | |
........#. | |
#......... | |
......#... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment