# Can you solve those laser puzzles? (puzzles created by the community) [closed]

So, I was bored and I made a small game for this site! In this game the user who solves the previous puzzle gets to create the next one and they will always be more complex. Website link and string down below!

How it works:

• You paste in the current puzzle string in the input box and press reset just to be sure. This will setup the game and place "invisible" mirrors on the board of which there are 8 types.
• You shoot lasers with a click on one of the small boxes on the side of the board the green color tells you where the laser shot came from and blue tells you where it exited. If there is only a blue box and no green box then it means that the laser entered and exited in the same box.
• You place the mirrors with first clicking on one and then clicking on a square on the board, to delete a mirror click on it again or overwrite it with another
• The 8 mirrors are:

• Vertical and horizontal reflection mirrors (worth 1 point). As a example, let's take the horizontal mirror. If the laser comes from above or below it gets reflected back in the opposite direction. If it comes from left or right it passes through the mirror.
• 45° degree mirrors (worth 3 points). I think this is pretty self explanatory as to what happens.
• Rotating vertical and horizontal mirrors (worth 5 points). These behave the same way as their standard counterparts with the added ability that when they get hit they turn into their opposite. So if the laser comes from above at a horizontal rotating mirror it gets bounced back up and the mirror now becomes a vertical one, which then again turns into a horizontal one if it gets hit again etc etc. The rotation occurs also if the laser passes through.
• Rotating 45° degree mirrors (worth 7 points). These are the same as the standard 45° mirrors with the rotation ability
• Your goal in this game is to figure out at which position what mirror is under. You got some things to help you with this:

• The first is the point counter which shows what the total sum of points of all mirrors on the board, so if there is only 8 avaliable points and you are sure that there is one rotating 45° mirror somewhere, then that only leaves 1 point left for one basic mirror.
• The second is the number of trys, this is a counter which tells you how many times you send a laser through from any position since innitializing the board
• And the last thing is a counter which tells you how many squares the laser has traveled in the current shot.
• The reset button resets the board to its initial state, this doesnt delete the mirrors you placed on the board but just puts the "invisible" mirrors back in their starting position

• The outer layer of the board can't have mirrors in them
• You need to find out the initial state of the board so if there is only one rotating mirror on the board and you hit it once with the laser the correct solution will still be to place the initial position of the rotating mirror on the board.

When you get the correct solution to the puzzle a message will inform you of your victory and then you will be able to create the next puzzle where you will be able to place a total points of mirror worth $n+2$, where $n$ is the previous puzzle's maximum points. The first puzzle posted by me will have 3 maximum points, so the next will have 5, then 7 etc (Scoring is now different in the new version). To create a new puzzle you simply place mirrors on the board. When you place exactly $n+2$ points worth of mirrors you get the next puzzle string. When you are creating a new puzzle you will also be able to see the actual laser traveling, and if the laser travels over a box multiple times the color will get darker.

You should also probably sort this thread after date to see the latest puzzle. The next valid puzzle in the chain will be earliest one with the correct solution to the previous one. The last thing I want to impose is the correct format of a valid answer. Edit: check out the current answers!

Version 1 (use this version for level 1 to level 4): https://preview.c9.io/vajura/blackbox/ver1/index.html

Version 2 (use this for level 5 and on, in this version mirrors cost more and the difficulty only increments for 1 point as a bonus the puzzle strings are 100 times smaller) https://preview.c9.io/vajura/blackbox/ver2/index.html

Level 5 is not yet updated so if you want to solve it use Version 1, if you solve Level 5 in the old version before Josh update his puzzle to the new version you are free to create the Level 6 puzzle from this link(just start placing mirrors the points will update and when you placed a total worth of 13 the new puzzle string will be shown) https://preview.c9.io/vajura/blackbox/ver2.1/index.html

Ztqy4a41pe5IuGQWzfFxalcAt6xd1e69wk4VkUL3M75imJzLdoYV/0EMO0ybvGq6T0mFep5+i9v7vTH3BnRkisXL8kBq9NCqsJBrmzAEfs6hx4tHcDu0xdKMBzvpRtOmh8k+nB5jh1/vv6fHFrbtoSNCfCl4LHWN8dFwBqdTFYbjuovGbX3zZPEXmHsj9OLgygB5BBRgAyAzoahxv0lR3JD67QqdGTKhmITxVbKzZweBZPfDDVKhMN4+nUfIJbLbcrLHZ/pQkOeCPBqIhzwyusMqTFhvlnAv6Vv785yUOBnFBH/rv0iVpyxfCn3a9BAhnWN6RUbdQfelANLSpVuD1KjGxTcaYDNwb633VzarMyhrdALMHyQfE8vGImkBkgRCUv6BqYfGnOfJ0+RjfC57IL5hG6Dggikq/er2n0Qm3TSkko8vRLzzYnwTbZ0tqDPIconnXiqCTbpjhjm2XOUuskXTActEvhVxJdJn8mhBW+TuPkq0wbwf8iA1b+uMQw6/tYEAuVxBXuKsjCWXajfUk6OyCUjkBVPuOdsiz0ewunMmDTFLlEFuXKGpdHflk4qf4ceIvjgtHvijHOt08Pq8AW88Rb4IutxxB4JXhNrwZ5glm9Y84J3jlqmy7QzGHuAKkx0gNQOE/5inTK1SKoChx/n5mDKzGeROUydeCxdF3DFQWnxoYaWTiY+lBePP2ldBSq7X6yeItmCwRSMwAFtWwelfLqBxd0maKSTfrxLLroOlFN8egiL/HN5MRdkp2RdPHHtGY49/wNqgxg+HaHKeIcdd+4oHqqYQo/kqpU2xkJXrjHV9AjZMDjjza6lj1l7JM7MWMVBen5L08RDacoItDdb4NLIkatwJyX54GPLoCygykhKI/Rxq0+TLZ8diSWwBPR+5yE7S1/sdFZeDAYr1kGUl0jeZjIjuAnaiN3VxW10zzjE9IoD0Np2gp+WVEKuRK8jC0CrT2AndbR9Pcwg6hYo8SY7hJZIhb9jRoUzDq2v9+42eA0c8ZghwdsPjjCPRZ92v34CXWuQOAfhgw68YwlJiMJjfayFUJpGQVM8P2K0aiSY/VKHtCQItnNu+J8lpJr6naTe/PPb8/OXGd1UqtQdoVmT94+lxirbNwstxm3Yfk8+ZVAGvT/600jevnh5mgmOVw09rjtzLMUQCfRbZohEGaWtFmRb6IyvFwkp0GVF92JkB5m3U8yVmGAqOYTfnZ5K0b7NWOCz1W047dmAmn9iHKEh7jju+ESQu6vcu79xLn29/8aIb9LCT/URmhVwGXCRhkfE7vwSq0uxz3t4ec45Xqeku861ue853N1w8XshFCmjTBybqVtrXkERToY2xugXhUhpZhETPftFqp9q7gmKgdIiYoHtpfUibcOdrLVJDVHbMiIUDtPv0bPmoPCulIcmu3W79JIMCDfHuLGzjP1MWir/zCJwWqwTCK7IMW7PKPdngg5SjUMNVSzOeju1mWwJ1pduyuBC0CembMS2mdQDwTVwwQr99XFfuvnm7V7Hf/xbq1D6mdZIIuvcLM1oi95PUehCkhtGFpEYbA1bjmg7aitYL5Y9NM9iyKVA4L+JhmpzOYLRU2qXL+8Szz6ZY

Level 4.5, puzzle made by COTO (but originally numbered "level 4" by accident)

Level 5, puzzle made by Josh

IpaFxd1Pbx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pgG8MYVaP5feXsOWxFeFYK07l/kxTVzFhIVClKLRRqu6wzNMSfJlQ/6ib75jnGNxddE9LtbVbxfX8bbcc1/+OFSeF5Gz2LFQQdhGqyFN2kOzav8XwTL19eyHconOFxHXRPIb4Va2ahRrCG+EsQtl45F3JRSMgTpU4kovk9JUIeFtxYx2aQXgWwKE6gghJn0Rdb177HrZPxAXurIokSaHUw5K4W+e6kJHZwCbtfnjZeyc/y9fTTDfTL7NT91qqhHLuceGVbD0PhfieiaVoN3Ixo0V8b3/r9J0HwYdN1W5ZcNboQGt5vy3dbTFlm7nTS1ex1RClfVs9TNRsOkGVoBg7a2pLoEtD0pH7Km5jEeSLqdSPhx7SHTkHsAuxSFOMgLUE6v6gEgpUeWZye7CkpYjb4G9SCKwuxfkT6q0RsCVOcSBYaNndioK7Uww116r5gY+zI+X/csgCJPFJIu0T5OX0LXeJB7oX/b6lZ0qms7RrdH6U/eVvBVnWoC8zVzBGkqgz+TQ=

As I know many people here are smart and I have not really spent any time on making this secure. I don't doubt that someone will decode the puzzle strings or crack the whole thing if they want too.

Also sorry for any bugs!

BONUS: Crack the code used! Achieved

• As for bugs: The Reset button does not work for me. I have to reload the page from the url to get it to reset. Commented Dec 10, 2014 at 19:32
• This question appears to be off-topic because it changes every answer. It's unsuitable for this site. Commented Dec 10, 2014 at 21:55
• Suggestion; Edit the new puzzle into the question. Commented Dec 10, 2014 at 21:55
• What do you mean edit the new puzzle into the question? Should i update my question everytime a new level of the puzzle is made? Also the reset button works fine for me, it doesnt actualy reset the pieces you put on the board but the "invisible" ones just get put back into the innitial state if they are rotating ones. Also a lot of such questions are on the codegolf & programing puzzle boards where the answers are chains Commented Dec 10, 2014 at 21:58
• I don't mind the edit, but maybe we should be consistent on round vs. level. Commented Dec 10, 2014 at 22:49

For the people who want to crack it by using code (and to get my bonus points):

The OP used Tea crypt with the password "vaj123":

so

s2 = Tea.decrypt(inputS, "vaj123"); decrypts the string (in inputS) into a map of values which it saves in s2. The first value has to be discarded, the rest of the values are used to make up a 20 by 20 grid. -1 is nothing placed, and 0-7 are the diffirent mirrors used.
You can execute the above command in the browser's console on the Black Box page.

And if you want the reverse-engineerd stuff:

Full code of the generation of the puzzle can be found here: http://jsbin.com/civuvetezi/1/watch?js,output

Yes I know, I am a party pooper.

Good luck!

• yea as i said the code wasnt really protected lol Commented Dec 12, 2014 at 12:43
• I know. But you asked for reverse-engineering for the bonus points... So... I did that :( Commented Dec 12, 2014 at 12:46
• Nah that request was made by another user and added to my post by them i didnt really care that much about it so i left it there Commented Dec 12, 2014 at 13:03
• That was me :D don't worry, you get your bonus. Commented Dec 13, 2014 at 2:06
• Just wait 23 hours for +100 Commented Dec 13, 2014 at 2:07

Nice puzzle. The first level is easy.

Previous puzzle (solved below)

Current (Next) puzzle (Level 2)

Level 1 Map

• dont really understand what you mean there. Yes you need to go through every spot there is no other way really. Also you can post the next puzzle now Commented Dec 10, 2014 at 18:50
• When you solve the puzzle YOU create a new puzzle you can remove the previous pieces(or leave them) and place new ones so that in the current situation you can place mirrors on the board which would be worth a total of 5 points (lets say 5 horizontal mirrors) then the new puzzle string appears. You post this string here and let other people then try to solve your puzzle and then when they solve it then THEY can again create a new puzzle with even more mirrors. Check out the format on how you should be posting answers Commented Dec 10, 2014 at 19:06
• Looking at this am I right in thinking that the rightmost mirror could have been placed anywhere on that line to the right and still been a valid solution? Commented Dec 11, 2014 at 12:04
• Well it doesn't tell me that it is the right solution but I can't see how it couldn't be. Anything vertical in that column is unaffected and the direct reflection of the horizontal can happen at any distance... Commented Dec 11, 2014 at 12:27
• @Chris There's a Distance value. So the Distance value tells you where to place the right most mirror. Commented Dec 11, 2014 at 15:57

Previous puzzle Level 3 (solved below)

Current (Next) puzzle (Level 4)

Ztqy4a41pe5IuGQWzfFxalcAt6xd1e69wk4VkUL3M75imJzLdoYV/0EMO0ybvGq6T0mFep5+i9v7vTH3BnRkisXL8kBq9NCqsJBrmzAEfs6hx4tHcDu0xdKMBzvpRtOmh8k+nB5jh1/v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7NWOCz1W047dmAmn9iHKEh7jju+ESQu6vcu79xLn29/8aIb9LCT/URmhVwGXCRhkfE7vwSq0uxz3t4ec45Xqeku861ue853N1w8XshFCmjTBybqVtrXkERToY2xugXhUhpZhETPftFqp9q7gmKgdIiYoHtpfUibcOdrLVJDVHbMiIUDtPv0bPmoPCulIcmu3W79JIMCDfHuLGzjP1MWir/zCJwWqwTCK7IMW7PKPdngg5SjUMNVSzOeju1mWwJ1pduyuBC0CembMS2mdQDwTVwwQr99XFfuvnm7V7Hf/xbq1D6mdZIIuvcLM1oi95PUehCkhtGFpEYbA1bjmg7aitYL5Y9NM9iyKVA4L+JhmpzOYLRU2qXL+8Szz6ZY

Level 3 Map

• Yup. You done broke it.
– COTO
Commented Dec 11, 2014 at 16:28
• @COTO Retesting now it seems very broken! Oops. Commented Dec 11, 2014 at 16:29
• @COTO Hopefully fixed now - thanks for letting me know. Commented Dec 11, 2014 at 16:35

# Current Level (4)

An automatic +1 from me if you can figure out what the heck is going on here:

## Previous Level (3) Solution

The solution is posted below.

That was fun!

Previous puzzle Level 4 (solved below)

ztqy4a41pe5IuGQWzfFxalcAt6xd1e69wk4VkUL3M75imJzLdoYV/0EMO0ybvGq6T0mFep5+i9v7vTH3BnRkisXL8kBq9NCqsJBrmzAEfs6hx4tHcDu0xdKMBzvpRtOmh8k+nB5jh1/vv6fHFrbtoSNCfCl4LHWN8dFwBqdTFYbjuovGbX3zZPEXmHsj9OLgygB5BBRgAyAzoahxv0lR3JD67QqdGTKhmITxVbKzZweBZPfDDVKhMN4+nUfIJbLbcrLHZ/pQkOeCPBqIhzwyusMqTFhvlnAv6Vv785yUOBnFBH/rv0iVpyxfCn3a9BAhnWN6RUbdQfelANLSpVuD1KjGxTcaYDNwb633VzarMyhrdALMHyQfE8vGImkBkgRCUv6BqYfGnOfJ0+RjfC57IL5hG6Dggikq/er2n0Qm3TSkko8vRLzzYnwTbZ0tqDPIconnXiqCTbpjhjm2XOUuskXTActEvhVxJdJn8mhBW+T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mpzOYLRU2qXL+8Szz6ZY

Current (Next) puzzle (Level 5) (Remember to user version 2.1 to solve - https://preview.c9.io/vajura/blackbox/ver2.1/index.html)

rqwgvscLaVzBZqUhhlWFfM7I2GtsUHrIHlcDkE9ARxA=

Level 4 Map

Good luck! I tried not to obfuscate the internals too much ;)

• Hello would you mind redoing your level if i increase the point count on the rotating mirrors so that the puzzles wont get really hard really fast? Commented Dec 12, 2014 at 8:05
• Use this link to setup your new puzzle preview.c9.io/vajura/blackbox/ver2.1/index.html Commented Dec 12, 2014 at 9:52
• done :) This one is a lil easier than the first version
– Josh
Commented Dec 12, 2014 at 18:15

Previous puzzle Level 2 (solved below)