Skip to content

Instantly share code, notes, and snippets.

@increpare
Created April 25, 2024 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save increpare/41ba052bf3147e804cbd9c0c2636ec7b to your computer and use it in GitHub Desktop.
Save increpare/41ba052bf3147e804cbd9c0c2636ec7b to your computer and use it in GitHub Desktop.
Nanny Dog (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
183
[ dog_angry ] [ > pushable | stationary obstacle ] -> [ dog_angry ] [ pushable | stationary obstacle ]
184
185
( [ dog_angry ] [ > pushable | wall ] -> [ dog ] [ > pushable | wall ] )
186
187
[ stationary player ] [ > pushable ] -> [ stationary player ] [ pushable ]
188
189
[ stationary player | no sightblocker ] -> [ dog | > look_token ]
190
191
up [ dog | baby ] -> [ | dog blood ] again
192
down [ dog | baby ] -> [ | dog blood ] again
193
left [ dog | baby ] -> [ | dog blood ] again
194
right [ dog | baby ] -> [ | dog blood ] again
195
196
up [ dog ] [ up look_token | Baby ] -> [ up dog_angry_u ] [ |baby] again
197
+ down [ dog ] [ down look_token | Baby ] -> [ down dog_angry_d ] [ |baby] again
198
+ left [ dog ] [ left look_token | Baby ] -> [ left dog_angry_l ] [ |baby] again
199
+ right [ dog ] [ right look_token | Baby ] -> [ right dog_angry_r ] [ |baby] again
200
+ [ > look_token | no sightblocker no baby ] -> [ | > look_token ]
201
+ [ > look_token | sightblocker ] -> [ | sightblocker ]
202
203
[ look_token ] -> []
204
205
[ > dog_angry | baby ] -> [ | dog blood ]
206
207
late down [ Adult_Head | no Adult_body ] -> cancel
208
(level editor only bits )
209
( down [ Adult_Head | no Adult_body ] -> [Adult_Head | Adult_body ] )
210
( up [Adult_body | no Adult_Head ] -> [ Adult_body | Adult_Head ] )
211
212
==============
213
WINCONDITIONS
214
==============
215
216
no Baby
217
some dog
218
219
=======
220
LEVELS
221
=======
222
223
##############
224
#............#
225
#.####.......#
226
#b*..........#
227
#b&..........#
228
#b*..........#
229
#b&..........#
230
######.......#
231
.....#.*.*.*.#
232
.....#.&.&.&.#
233
.....#p......#
234
.....#.*.*.*.#
235
.....#.&.&.&.#
236
.....#.......#
237
.....#########
238
239
#############
240
#...........#
241
#.####......#
242
#b*.........#
243
#b&.........#
244
#b*.........#
245
#b&.........#
246
######......#
247
.....#.****.#
PuzzleScript - SAVE - - - SOLVE - - RUN - REBUILD - LEVEL EDITOR - EXPORT - SHARE - DOCS - FORUM
=================================
PuzzleScript Terminal
=================================
=================================
Successful live recompilation, generated 66 instructions.
searching...
solver aborted
no solution found (24684 positions explored)
=================================
Successful live recompilation, generated 66 instructions.
saved file to local storage
searching...
solver aborted
no solution found (44715 positions explored)
=================================
Successful live recompilation, generated 66 instructions.
=================================
Successful live recompilation, generated 66 instructions.
saved file to local storage
saved file to local storage
Printing level contents:
##############
#............#
#.####.......#
#b*..........#
#b&..........#
#b*..........#
#b&..........#
######.......#
.....#.*.*.*.#
.....#.&.&.&.#
.....#p......#
.....#.*.*.*.#
.....#.&.&.&.#
.....#.......#
.....#########
saved file to local storage
=================================
Successful live recompilation, generated 66 instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment