Nan or -1 (test 5) for non clue cells ?
Thanks for the catch. I've updated that test case.
Now, the biggie. Implement a solver for advanced FAP. I never managed to create one that worked on all problems.
I was working on it last night, but it's tabled for now. I can't quite figure out how to solve the advanced logic portion that propagates along adjacent clues (including diagonal) to solve cells outside of that clue's reach.
Good problem but too difficult for a first contact. Maybe a first basic problem with small boards and/or clear cues (0/9). And after only, a more difficult one.
If anyone is interested more in these games, I've made quite a few of them on Sporcle.com. for the first of four Fill-a-pix (aka, mosaic logic puzzle) playlists.
Return the largest number that is adjacent to a zero
Matrix indexing with two vectors of indices
Getting the row and column location from a matrix
Create a random logical vector of N elements of which M are true.
Derivative of polynomial
Lights Out 3 - 5x5, 6 moves
Scrabble Scores - 4
Legend of Zelda - Rupee Count (Item Purchase)
Cycling — Critical Power
Combined Ages 3 - Non-symmetric, n ≥ 3
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office