Maybe adding an example of a diagonal island would be a good idea to make it clearer.
Sure, I see and I think i know where confusion comes from. When you try the task there is an extra paragraph saying:
Pixels are 'adjacent' if their coordinants differ by no more than 1 on the X and/or Y axis.
I interpreted and there as a sum |x1 - x2| + |y1 - y2| <= 1. So if one pixel has x and y as coordinates, diagonal pixel would have x(+/-)1 and y(+/-)1 coordinates.
|x1 - x2| + |y1 - y2| <= 1
Have you read the instructions? That same example is there and it says they're 2 islands.
Tests are broken, in JS
var image = [
expects 2 while there are 3 islands
no sample tests... (JS at least)
No solutions should have been harmed in upgrading this kata's Haskell version from 7.x to 8.x. We apologise for any inconvenience.
Took a while to suss out.
RegEx not a strong point :)
really really really fun kata. reminds me some compilation course at school. finally this was not so difficult. thanks all guys who contributed to this kata
There are no random tests.
Python translation. Please, review and approve.
Haskell random test queries are way more liberal on whitespace than the grammar (whitespace at beggining/end of query, arbitrary whitespace instead of a single space after "SELECT", "FROM" etc.).
I would consider these bugs in the description rather than the test cases.
Python translation available. Please, review and approve.
runTestCase can be overwritten, so...
createInstructions is not defined in the sample tests.