The 4 pieces represent the "robots" Blue, Yellow, Red and Green on a board with 16x16 cells and some walls.
Rules: Each round one of the robots can be moved horizontally or vertically, and does not stop until it reaches an obstacle - either a wall or another robot.
E.G. in this example the Yellow on B14 can only reach A14 or B16 in one move, and nothing in between. You can only move one robot per round.
The object of the game is to bring one specific robot to an indicated target (here C9 marked with * ) using as few moves as possible.
(Since the goal has no neighboring wall you'll need to position other robots as obstacles nearby to reach it)
If you are still bored...
I do have a script I wrote 16 years ago.
It needed over an hour back than and runs today in 1:30 min on my laptop, so it's solvable within the given margin. :)
But it took me two days to write it, and you might run into memory problems.
I had a lot back then, and learned a lot. Hope you too ... :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
added some clarifications and links
here the positions of the walls (yes strings as non-strict barewords, this script is old)
@vwalls=(A5,A11,B7,B13,C1,D15,E5,E10,G4,G10,H7,H9,H12,I7,I9,J12,K7,L3, +L15,M9,N7,O1,O14,P4,P10); # below cell @hwalls=(B2,B7,B14,D10,D15,E1,E6,E16,F4,F11,G8,G9,H13,I8,I9,I13,J1,K3, +K8,L15,M10,N2,N7,N14,N16); # to the right $Target="C9"; $Y="B14"; $R="J1"; $G="F16"; $B="M10";
It's specifically requested to bring Yellow on target, the first version was misleading, sorry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Challenge: Ricochet Robots (updated)
by choroba (Cardinal) on Feb 19, 2021 at 02:06 UTC | |
|
Re: Challenge: Ricochet Robots
by choroba (Cardinal) on Feb 19, 2021 at 09:30 UTC | |
by LanX (Saint) on Feb 19, 2021 at 12:57 UTC | |
by choroba (Cardinal) on Feb 19, 2021 at 13:40 UTC | |
by LanX (Saint) on Feb 19, 2021 at 14:15 UTC | |
|
Re: Challenge: Ricochet Robots
by tybalt89 (Monsignor) on Feb 19, 2021 at 16:43 UTC | |
by LanX (Saint) on Feb 19, 2021 at 17:03 UTC | |
by tybalt89 (Monsignor) on Feb 19, 2021 at 19:06 UTC | |
by LanX (Saint) on Feb 19, 2021 at 20:54 UTC | |
by tybalt89 (Monsignor) on Feb 19, 2021 at 17:22 UTC | |
by LanX (Saint) on Feb 19, 2021 at 19:19 UTC | |
by tybalt89 (Monsignor) on Feb 19, 2021 at 19:28 UTC | |
| |
|
Re: Challenge: Ricochet Robots (more edits)
by vr (Curate) on Feb 22, 2021 at 18:31 UTC | |
by LanX (Saint) on Feb 22, 2021 at 19:13 UTC | |
by LanX (Saint) on Feb 22, 2021 at 19:32 UTC | |
|
Re: Challenge: Ricochet Robots
by Anonymous Monk on Feb 23, 2021 at 17:11 UTC | |
by LanX (Saint) on Feb 23, 2021 at 17:15 UTC | |
by Anonymous Monk on Feb 23, 2021 at 18:41 UTC | |
by LanX (Saint) on Feb 23, 2021 at 19:24 UTC | |
|
Re: Challenge: Ricochet Robots
by Anonymous Monk on Feb 23, 2021 at 18:17 UTC | |
by LanX (Saint) on Feb 23, 2021 at 19:29 UTC |