Current Mode: mode
Choose mode for next game:
You start as an element in a list โ your goal? Sort it!
targetList = [2,5,3,4,1]
levelList = [3,4,1,5,2]
You move left โฌ ๏ธ (Left Arrowkey) or right โก๏ธ (Left Arrowkey), collecting boxes as you go. Use merge ๐ (Space key) when needed. Try to match the target.
[3,4,5,2,1] โ [3,4,5,1,2] โ [3,4,1,2,5] โ [3,1,2,4,5] โ [1,2,3,4,5] YOU WON!
โญ - If you won!
โญ - If it's not manualMerge and you did it in less than optimal+3 steps
(or) - If it's manualMerge and you did it in optimal merges
โญ - If you did it in optimal steps
Want to share a message in a cool way you can do that too. (Just don't make it too long it might make it booring!)
targetList = [I, ,L,O,V,E, ,Y,O,U] [Y,O, ,E,V,I,L, ,U,O] โ [Y, ,O,E,V,I,L, ,U,O] โ [Y, ,E,O,V,I,L, ,U,O] โ [Y, ,E,V,O,I,L, ,U,O] โ [Y, ,E,V,I,O,L, ,U,O] โ [Y, ,E,V,L,O,I, ,U,O] โ [Y, ,E,L,O,V,I, ,U,O] โ [Y, ,L,O,V,E,I, ,U,O] โ [Y,I, ,L,O,V,E, ,U,O] โ [I, ,L,O,V,E, ,Y,U,O] โ [U,I, ,L,O,V,E, ,Y,O] โ [I, ,L,O,V,E, ,Y,O,U] YOU WON!
Hey, but you want to reveal this message slowly as they solve not as target right?
- You can do that too! just when you make the level, select 'Hide Target'.
we also hash the level data in the link so that the message is not revealed so early.
(it's not an privacy encryption!)
why did that 1st 'O' didn't match with 'Y' when there is 'YO' in 'I LOVE YOU'?
- because it's 1st 'O' and 1st 'O' is in 'LOVE' not 'YOU'.
What's the problem what 'O' is it?
- Suppose it was [Y,O,V, ,...]
what should we do? [Y,O,V, ,...] or [Y,O,V, ,...]
Fun fact: internally you still sort a list in ascending order!
and we index 1st 'O' same as the 1st 'O' in the target and same for all characters
but that might make it confusing!
You can on the 'Show Index Hinting' option when you make a level to see if the charcter is at the index where it should finally be (any way you now understand how it works)
Now go make, share, and solve levels. Or better โ hide a secret.