Puzzle 30: Mini Legendaries, Maxi Pranks

Our six mini legendaries (Mew, Celebi, Jirachi, Manaphy, Shaymin, Victini) have mastered the art of transforming. Each of these six legendaries decided to trick Arceus, transforming to the others for the five work days. Since Arceus doesn’t have good logic (Uxie holds it), it asks you for help. Can you help the God of Pokemon tackling this medium mishap?

Basic facts:
1. There are six mini legendaries: Mew, Celebi, Jirachi, Manaphy, Shaymin, Victini.
2. There are five work days: Monday, Tuesday, Wednesday, Thursday, and Friday, in that order from earliest to latest. Each of the work days are separated by a day; that is, Tuesday is 1 day after Monday, Wednesday is 2 days before Friday, and so on.
3. In each work day, each legendary transforms to exactly one of themselves. A legendary may “transform” to itself. No legendary may appear twice; that is, no two legendaries may both transform to the same legendary in the same day.

The puzzle:
1. Each legendary transform to five different legendaries in the week.
2. Mew and Celebi have a disagreement, and as the result, neither transforms to the other in the first three days.
3. Celebi blames the disagreement to Shaymin, and as the result, neither Mew nor Shaymin transforms to the other in the last two days.
4. On Tuesday, no legendary transforms to itself. On Thursday and Friday, each of exactly two legendaries transform to themselves. On Monday and Wednesday, exactly one legendary transforms to itself.
5. Manaphy transforms to Shaymin in some day and to Jirachi in another day. The difference between these two days is 4 days.
6. Shaymin never transforms to the legendary which never transforms to Shaymin.
7. Victini transforms to Jirachi, and Jirachi transforms to Manaphy. Both take place on Monday.
8. Shaymin transforms to Mew in some day.
9. None of Mew, Celebi, and Jirachi transforms to any of Manaphy, Shaymin, and Victini on Wednesday.

Well, good luck? It’s not that hard.

So I haven’t made one large puzzle for Puzzle 30; I can’t think of a genre. So here’s a word puzzle. I hope you know English.

I need to make more of these to practice my construction skills.

Puzzle 29: Invisible Fillocity

Fillomino Skyscrapers. Follow regular Fillomino rules. In addition, if each number is represented by a building which height is equal to the number, each number outside the grid represents the number of visible buildings when looking into the grid in that direction. A building blocks all buildings behind it which height is less than or equal to the height of this building.

Welcome to Fillocity,  city whose buildings’ heights follow Fillomino rules. The city is known for several unusually large buildings. However, we don’t quite have a map of the city yet, although we have 11 entrances into the city and reports of the number of visible buildings from each of these entrances are consistent. I hope you can figure out where things are. We would consider the difficulty of locating the buildings here medium.

Puzzle 29: Invisible Fillocity
Fillomino Skyscrapers

Story. So I now learn making short stories of 1-2 paragraphs for every puzzle. Hopefully this trend will be sustained for all next puzzles…maybe. Hm.

Also, two people have solved Puzzle 25 and have taken their rewards; Puzzle 31 or 32 will be for this second solver. One more slot to go!

Also, Puzzle 28’s ambiguity, if you get it, has been clarified. I think that’s the only ambiguity, but if there is more, tell me. Now that I’ve said that, I think this puzzle might still have some ambiguity; someone can check it?

Jahooma 2: Insanity

A single puzzle of hellish difficulty.

Puzzle 2.1: Error-prone Substring (Extreme)
Given an input in the form “start,length,string” (without quotes) where start and length are nonnegative integers and string is a string not containing any asterisk, output substr(string, start, length). That is, starting from the start-th letter (zero-indexed), take the next length characters. It is guaranteed that start + length is less than or equal to the length of the string.

Boxes:
Circular Add asterisk (adds an asterisk in front of the string)
Circular Add period (adds an period in front of the string)
Circular Add zero (adds a zero in front of the string)
Circular Copy (copies the first character of the string to the end of the string)
Circular Delete (deletes the first character of the string)
Circular Compare (compares the first character and the second character of the string; if they are equal, exit green, otherwise exit red; the input is unchanged)
Circular Rotate (moves the first character of the string to the end of the string)
Square Rotate (moves the first character of the string to the front of the first asterisk in the original string or to the end of the string if no asterisk is found)
Circular Increment (increments the first character of the string (0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 0; * -> *; . -> .))
Circular Save (copies the first character of the string to the storage stack)
Circular Store (moves the first character of the string to the storage stack)
Circular Load (moves the topmost character of the storage stack to the front of the string)
Circular Is asterisk (implemented from your solution to Puzzle 1.1, replacing period with asterisk)
Circular Find asterisk (implemented from your solution to Puzzle 1.2, replacing period with asterisk)
Circular Is period (implemented from your solution to Puzzle 1.1)
Circular Find period (implemented from your solution to Puzzle 1.2)
Square Back rotate (implemented from your solution to Puzzle 1.3)
Square Increment Nonnegative Number (implemented from your solution to Puzzle 1.4)

Sample cases:
– “1,2,abcd” -> “bc”
– “0,1,abcd” -> “a”
– “0,0,” -> “”
– “3,3,3,3,3,3,3” -> “,3,”
– “11,11,the insane chaotic_iak posts another puzzle again” -> “chaotic_iak”

Puzzle 28: Mashed Fillomino and Special Puzzle 6: Just Can’t Get A Clear Sky

UPDATE: Here is a new Puzzle 28, 5 months after the original. Yeah.

After a smoothie, I serve a mashed potato—err, a mashed Fillomino.

Fillomino Epic Variation. No less than four variations that made an appearance in the original Fillomino Fillia are in this puzzle: Shape, Even-Odd, Greater Than, and Sum. Follow usual Fillomino rules. In addition, the given shapes must appear in the grid without rotation (because I apparently forgot this rule when constructing, let be so), all even numbers are connected in a single polyomino and so are for odd numbers, all inequality signs must be followed by the numbers in the respective cells, and the sum of the numbers in each cage must match the given. Calling MellowMelon for a better presentation.

Puzzle 28: Mashed Fillomino
Fillomino (Epic Variation)
(click to enlarge)

UPDATE: Ambiguity acknowledged. Assume R2C2 and R3C2 have different numbers. I will soon replace the puzzle with another one which should be similar (S,H,A,P,E shapes and a certain gimmick) but better made. Most likely I’ll use givens as opposed to sum cages and greater than signs…maybe.

So, yeah. My take at a Potpourri; MellowMelon made an extremely hard one that I haven’t solved 1.5 years ago and the post is linked above.

ksun48 solved Puzzle 25, and he asked for a “hard Fillomino variation”. I hope this is sufficiently hard, since otherwise I have a harder puzzle…

Special Puzzle 6: Just Can’t Get A Clear Sky
Fillomino Epic Variation [Count Solutions]

So, what’s the puzzle? You are given a 11×11 grid of Fillomino, and the five shapes as above. The only variations applied are Shape and Star (each row/column must have two stars occupying the space of a monomino each; no two stars are adjacent even diagonally). Count the solutions, and prove it.

I guess the title helps you in some way, but you still need to prove it. Yay.

In case you missed it, I served a smoothie (Puzzle 27) a few seconds ago.

Puzzle 27: Yajilin Smoothie

Because I begin to title my puzzles, I start serving smoothies.

Yajilin, Smooth Turn variation: The loop cannot have two adjacent turns facing the same direction (aka a small U-turn).

Puzzle 27: Yajilin Smoothie
Yajilin (Smooth Variation)

Puzzle 28 should be already out by the time anyone besides me reads this.

mathgrant and MellowMelon are at it again: Fillomino Fillia 2. I will post a few Fillomino puzzles until the test ends (save for Puzzle 30, which if it’s a Fillomino will create some bad repetition (Puzzle 10 was a 17×17 Fillomino)), but not necessarily practice puzzles for the event. EDIT (05-Dec-2012): Fail. Only one Potpourri posted within time. The two authors will be posting Fillomino puzzles which will be practice puzzles. Let’s see.

Puzzle 26: Four Winds and Special Puzzle 5: Tetro Stack

Two puzzles!

Four Winds. Divide the grid into several regions; each region must contain a number in its “capital”. All other squares in the same region must be either in the same row or in the same column as the center of the capital. Each region must be connected; that is, any cell in a region must be able to be visited from any other cell in the region by moving orthogonally along the squares in the region. Each number tells the number of squares in its region excluding the capital, so a number of 0 means that the region is composed of only the cell with the number itself.

This puzzle has the Unknown and Different variants! The numbers are replaced by question marks; it’s up to you to figure out the numbers. Additionally, all the numbers must be different.

Easy to medium if you have tried Four Winds before. Otherwise, probably medium with a little spice of hard.

Puzzle 26: Four Winds (Unknown, Different)

UPDATE 26-Oct-2012 22:46 UTC+7: Fixed an ambiguity near lower-left. By changing the right part. Yay.

And the second puzzle!

Tetro Stack. Perhaps the hardest puzzle so far in this blog?

Special Puzzle 5: Tetro Stack

Why is the latter a special puzzle? It was really hard (all difficulty are in my opinion) that I think I haven’t managed to discover a logical way, and I think I haven’t tested all possibilities. I’m not even sure that it has a single solution, hence the singled puzzle. This also makes it easy to remove it if it apparently has more than one solution. Yay.

Jahooma’s LogicBox, and Jahooma Puzzle 1

Jahooma’s LogicBox is a fantastic game, if you have the proper skills to play it. As in programming interest and somewhat great problem solving skills.

Roughly, you are given a task to perform by placing “boxes” (which represent functions in programming) in a grid. Different levels allow you to use different boxes, and sometimes it becomes extremely challenging because of the nonexistence of some boxes. When the program is run, an object carrying a string appears from the Start box, following the directions and executing the boxes’ purposes, until the object leaves the grid. You must match the direction where you are told to exit from, and the string in your object must have been modified to match the requirements. You probably can understand better by playing it.

So, what’s the point of this post then? As you can probably expect, I love that game, at least until when it requires payment to play a fuller version (it’s still in “lite” version, and judging from the “premium” release name in 2013, it seems like it’s going to need money to play). Well, I’ll just make some puzzles to post here. Yay.

Puzzles!

In each puzzle, you are given an infinite grid to toy with unless otherwise stated; if your object won’t encounter any more box, you can say that it leaves the grid, in the same direction as the game (up = green, down = red, left = yellow, right = blue). You are also given the boxes available and their effects. Finally, you are also obviously given the task, but not the test cases! It’s up to you to determine. You can submit your solutions to me if you want me to check it, but I will analyze your program and give you either the verdict CORRECT or the verdict INCORRECT along with one test case where your program fails the task. Oh yay that looks like a programming contest or something. But then again it’s a programming game, so yeah. After everything that matters with the puzzle, you might be given a Variants section which will adapt your solution into several other similar boxes.

Reminding you again that square boxes cut the input up to just before the first asterisk, aka if you have “ab*cd”, a square box will only accept the argument “ab” and leaves “*cd” unchanged.

Also, Redirect is always an available box, and because I aim this to be more programmer-style, Redirect (and Start) isn’t counted as a box when counting the total number of boxes and not counted as a step when counting the total number of steps.

Puzzle 1.1: Is It A Star? (Easy)
Is Period: Given an input, determine whether the first character is a period or not. You should exit from the green direction if it is, and red direction if it isn’t. The input should stay unchanged when it is output.

Boxes:
Circular Add period (adds a period in front of the string)
Circular Copy (copies the first character of the string to the end of the string)
Circular Delete (deletes the first character of the string)
Circular Compare (compares the first character and the second character of the string; if they are equal, exit green, otherwise exit red; the input is unchanged)

Sample cases:
– “.a” -> “.a”, exit green
– “a.” -> “a.”, exit red
– “period” -> “period”, exit red
– “…” -> “…”, exit green

Variants:
Is Asterisk: Checks whether the first character is asterisk; if it is, exit green, otherwise exit red. Replaces all mentions of “period” in the previous implementation with “asterisk”.

Puzzle 1.2: Finding Star (Medium)
Find Period: Given an input containing at least one period, splice the string into two parts: before the first period and after the first period. Afterwards, change their position so the part after the period appears first. The period is “consumed” and disappears.

Boxes:
Circular Add period (adds a period in front of the string)
Circular Copy (copies the first character of the string to the end of the string)
Circular Delete (deletes the first character of the string)
Circular Compare (compares the first character and the second character of the string; if they are equal, exit green, otherwise exit red; the input is unchanged)
Circular Rotate (moves the first character of the string to the end of the string)
Circular Is period (implemented from your solution to Puzzle 1.1)

Sample cases:
– “abc.def” -> “defabc”
– “a.b.c” -> “b.ca”
– “…” -> “..”
– “.” -> “”

Variants:
Find Asterisk: Splices the argument into two parts, one before asterisk and one after asterisk. The two parts exchange place so the latter appears first while the former follows. is removed. If doesn’t exist, the program gets to an infinite loop. Replaces all mentions of “period” in the previous implementation with “asterisk”.

Puzzle 1.3: Getting A Clearer View (Hard)
Square Back Rotate: Given an input not containing any asterisk, move the last character of the string to the front of the string.

Boxes:
Circular Add asterisk (adds an asterisk in front of the string)
Circular Copy (copies the first character of the string to the end of the string)
Circular Delete (deletes the first character of the string)
Circular Compare (compares the first character and the second character of the string; if they are equal, exit green, otherwise exit red; the input is unchanged)
Circular Rotate (moves the first character of the string to the end of the string)
Circular Is asterisk (implemented from your solution to Puzzle 1.1, replacing period with asterisk)
Circular Find asterisk (implemented from your solution to Puzzle 1.2, replacing period with asterisk)

Sample cases:
– “abcd” -> “dabc”
– “period.” -> “.period”
– “aaa” -> “aaa”
– “ayayay” -> “yayaya”

Puzzle 1.4: Counting Stars (Insane)
Square Increment Number: Given an input of a valid non-negative integer (starts with a digit other than zero except if it has only one character), increment its value by 1.

Boxes:
Circular Add asterisk (adds an asterisk in front of the string)
Circular Add period (adds an period in front of the string)
Circular Add zero (adds a zero in front of the string)
Circular Copy (copies the first character of the string to the end of the string)
Circular Delete (deletes the first character of the string)
Circular Compare (compares the first character and the second character of the string; if they are equal, exit green, otherwise exit red; the input is unchanged)
Circular Rotate (moves the first character of the string to the end of the string)
Circular Increment (increments the first character of the string (0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 0; * -> *; . -> .))
Circular Is asterisk (implemented from your solution to Puzzle 1.1, replacing period with asterisk)
Circular Find asterisk (implemented from your solution to Puzzle 1.2, replacing period with asterisk)
Circular Is period (implemented from your solution to Puzzle 1.1)
Circular Find period (implemented from your solution to Puzzle 1.2)
Square Back rotate (implemented from your solution to Puzzle 1.3)

Sample cases:
– “123” -> “124”
– “999” -> “1000”
– “0” -> “1”
– “499499” -> “499500”

Puzzle 25: Surveyors Heyawake

Surveyors Heyawake, also known as my favorite original genre (as of the time of post). Medium, a little bit toward hard.

Puzzle 25: Surveyors Heyawake

Apparently it’s not a small-grid puzzles batch!

Who says I can’t commemorate my 25th puzzle with something special? Antisymmetry, if you look closer (opposite givens add up to 5). The regions somewhat form a windmill, although that is not really intended. Weird regions, but I believe I don’t need to instate the “white contiguous region may not span over two boundaries” rule because it’s equivalent.

So… I’m running low on ideas. The first three people who e-mail me the correct solution to this puzzle may pick a genre, to be posted before Puzzle 40.

Puzzle 23: Tetro Stack

Tetro Stack, inspired from Friedman’s Pentomino Puzzles. Put the five tetrominoes to the grid such that they don’t overlap or cover any circle. Gravity acts on these objects, so for each tetromino and circle, there is at least one square occupied by the tetromino/circle such that the square directly below it doesn’t exist (it’s on the bottommost row) or is also occupied by a tetromino. Medium?

Puzzle 23: Tetro Stack

I hope you understand my vague rules above 😛 Puzzle 24 to be posted within 10 hours.