## 'Walking the Squares' printed from http://nrich.maths.org/

### Show menu

So here's a special square of tiles to walk on!
The black square in the middle contains some very special prizes.

You can get the prizes by collecting tokens which are on each tile. So you have to step on as many tiles as possible.
BUT
You cannot go onto any tile more than once.
You are not allowed to step on more than two tiles of the same colour one after another.
So this path would be OK.

But this path is not allowed;

Why? Because the path goes along $3$ blues which is not allowed, the blue to green is OK but then tere are $4$ green tiles one this path next to each other and that is also not allowed.
You can start anywhere on the outside like in the OK example above.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 2, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9518290162086487, "perplexity_flag": "middle"}