## On the Subject of Coffee Beans

Me and the boys at 3 am awake due to B E A N S

This module has 3 coffee beans on it. Some beans will be moving around. To solve the module, you must consume the three beans in the correct order. Eating a bean at the incorrect moment will cause a strike. **Note that you cannot see a bean when it has been eaten.**

### Finding Valid Beans

To find the valid order of eating the beans, follow the steps below. Hovering over a bean will display its index.

- Write down the movements of the empty spot. These can be horizontal, vertical or diagonal.
- Look at the transformation it turns into when you combine all transformations according to the table below. Order does not matter.
- If this transform is diagonal or nothing, eat the first bean. If it is horizontal, eat the second. If it is vertical eat the third.
- Now make groups of each move and the next like 12 23 et cetera. Do not include a pair of the last and a movement thereafter as that doesn't exist.
- Look up these combinations. If an even amount of pairs result in diagonal or no movement, eat the first of the remaining two beans, otherwise eat the second.
- Finally, eat the remaining bean.

nothing | horizontal | vertical | diagonal | |
---|---|---|---|---|

nothing | nothing | horizontal | vertical | diagonal |

horizontal | horizontal | nothing | diagonal | vertical |

vertical | vertical | diagonal | nothing | horizontal |

diagonal | diagonal | vertical | horizontal | nothing |