This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# An Unblock Me solver written using A* search algorithm | |
# perfect solution | |
# Author: Saren | |
SIZE = 6 | |
""" | |
GOAL = ( | |
(' ', ' ', ' ', ' ', ' ', ' '), | |
(' ', ' ', ' ', ' ', ' ', ' '), | |
(' ', ' ', ' ', ' ', 'T', 'G'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Taken zigmob's (http://forums.macrumors.com/showthread.php?t=1742566) workaround a step further | |
And added some triggers to clean up these dodgy character combinations (ff, fi, fl). | |
Still crashes on initial message read but saves having to manually run the sql query eve time a message contains the character combinations */ | |
-- Working well for me so far -- | |
/* | |
Kane Lai 2014-07-13 | |
Improved by updating only the affected row in the trigger. | |
Also, supplied the restore script too. | |
*/ |