last day (16 days later) » 

03:26
0
Q: Guide dots to land on any pair of matching portals at the same time

uwnojpjmQuestion: First, I'll define the left blue dot as dot 1, and the right blue dot as dot 2. Left being <, right being >, up being ^, and down being v, what set of these moves can guide the two dots to land on any matching pair of portals at the same time? Rules: (0) The two side-by-side dots a...

You've got arrows from the orange dots. Do you mean them to be dot1 and dot2 instead of the blue dots?
The black arrows in the diagram indicate a portal transfer from an orange portal to a gray portal. Gray to orange portal transfers work too.
Have you used Puzzlescript before? It might be useful to make an interactive version of this puzzle.
@boboquack, this is great. Is it embeddable to SE?
Unfortunately not, but you can get a link to the puzzle you produce and/or copy the code here for others.
03:26
@boboquack, working on it.
@boboquack, here is my incomplete game. I need to figure out teleports and how to get players above background layers...
I don't think puzzle script is robust enough.
I can help
You got the link?
Yep
You want this:
================
COLLISIONLAYERS
================

Player, Wall, G1, G2
Background
I think
wait
================
COLLISIONLAYERS
================

Background
P11
P12
P21
P22
Player, Wall, G1, G2
In my first version, if your first move is left, then the dot in the right most corner shouldn't move.
Any time the player goes to move to a "wall" portion no one should move.
========
OBJECTS
========

Temp
Black

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Blue Yellow
.....
.000.
.010.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
.010.
.000.
.....



=======
LEGEND
=======

. = Background
# = Wall
Yeah
So we can add extra conditions
E.g.
 [> Player|Wall] -> CANCEL
 [>G1||<G2] -> CANCEL
 [>G1|<G2] -> CANCEL
 [>G1||<Player] -> CANCEL
 [>G1|<Player] -> CANCEL
also
late [>G1|wall] ->[G1|wall]
late [>G2|wall] ->[G2|wall]
Now the portals are more complicated
more up to date set of rules:
======
RULES
======

[ > Player ] [ G1 ] -> [ > Player ] [ < G1 ]
[ > Player ] [ G2 ] -> [ > Player ] [ > G2 ]
[> Player|Wall] -> CANCEL
[> G1||< Player] -> CANCEL
[> G1|< Player] -> CANCEL
[> G1||< G2] -> [G1||G2]
[> G1|< G2] -> [G1|G2]
[> G1|wall] ->[G1|wall]
[> G2|wall] ->[G2|wall]
Actually:
======
RULES
======

[ > Player ] [ G1 ] -> [ > Player ] [ < G1 ]
[ > Player ] [ G2 ] -> [ > Player ] [ > G2 ]
[> Player|Wall] -> CANCEL
[> G1||< Player] -> CANCEL
[> G1|< Player] -> CANCEL
[> G1||< G2] -> [G1||G2]
[> G1|< G2] -> [G1|G2]
[> G1|wall] -> [G1|wall]
[> G2|wall] -> [G2|wall]
[> Player|G2|Wall] -> [Player|G2|Wall]
03:47
This is awesome!
So that's everything but the portals
Now I'll add them
What about wins?
A win is when both blues are on two grays at the same time or two oranges at the same time in whatever order.
Yes, I can add that too
04:21
I witnessed an illegal move, we need [> Player|G2|Wall] -> CANCEL as well.
G1 moves when the Player moves when Player|G2|Wall happens.
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
That's what I have at the moment, maybe you can test
Oops
68068303 is a good portal sound
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
that should work better
Oops
I forgot myself going to a portal
12735500 is a good win sound
Your T condition should be for simultaneous orange hits OR simultaneous gray hits. No simultaneous orange/gray hits. So, "T = P11 or P12 or P21 or P22" should be "T = P11 or P12 U = P21 or P22" with a win condition of, presumably, "all X on T or all X on U"
04:40
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
At the moment things teleport even if they don't move, do you want that?
What do you mean?
Let me play.
I'll check.
So like if G1 hits a wall on a portal, it will still teleport
also, if say G1 and player are both on linked portals, they will switch positions
Can you cancel the situation when any hits a wall after portal transfer?
Entity swap on a simultaneous portal hit is cool. Keep that.
so do you want no portal if no movement, clarifying?
Linked portals specifically.
What do you mean no portal if no movement?
04:52
so if something collides with a wall and ends up not moving, it won't teleport - that's what you want?
Oh!
I see.
I don't know. What seems good?
I think no teleport on collision is good.
The only problem is then G1 and G2 might merge
like if g1 stays still on a portal and g2 moves onto the linked portal and teleports into g1
I was just thinking that.
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
Fixed problem with winning, I think
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
^actually, this should be better
No sounds on win?
Portal sounds?
Is that too complicated?
12735500 for win, 68068303 for teleport
I don't think you can.
Endgame
05:04
I can do it
title Simple Block Pushing Game
author Stephen Lavelle
homepage www.puzzlescript.net

========
OBJECTS
========

Player
Yellow
.....
.000.
.000.
.000.
.....

G1
Blue
.....
.000.
.000.
.000.
.....

G2
Green
.....
.000.
.000.
.000.
.....

Background
Pink White
11111
10001
10001
10001
11111


Wall
White
00000
00000
00000
00000
00000

P11
Orange Black
.....
.000.
.010.
.000.
.....

P12
Orange White
.....
.000.
.010.
.000.
.....

P21
Gray Black
.....
.000.
.010.
.000.
.....

P22
Gray White
.....
.000.
Here is the code
I removed the annoying functionality that once you win, you can't undo and see what you did
Yay! I won
Woo!
Nice job.
Thanks for helping. ^^
Edit: I didn't change the dot hitting wall and teleporting thing - it was too hard to implement

  last day (16 days later) »