Friday, November 6, 2009

Puzzle Pal: Sudoku Solver UI fixes

I did some fine tuning to the Sudoku Solver. The input grid is a subclass of EditText, and I override the onTouchEvent method to select a cell. After that I used to return false. I changed it to return super.onTouchEvent so that it brings up the soft keyboard when you tap anywhere on the grid.

I also changed the way I handle key events. Before I used getDisplayLabel() to determine the letter typed, which is incorrect since it only reflect the label on the keyboard, ignore key combinations. Now I use getNumber(), which confusingly also returns characters that are not numbers.


Inline coding questions will not be answsered. Instead, ask on StackOverflow and put the link in the comment.

  1. Very handy, user-friendly, excellent job!
    Perhaps in a future update add all words that can be made from the input set. (5 letters yields all 5, 4, 3 & 2 letter anagrams in decending order)

  2. Have you used the "Drop a letter then anagram" mode? I can expand that to "Drop n letters then anagram" when I have time.

  3. hey, thanks for a perfect aplication! please would it be possible to add a czech dictionary/wordlist to your app? we have some, but dont know in which format does it has to be and how to add it. can you please help us?

    thanks a lot!

    my email:
    potulny (dot) kejklir (at) gmail (dot) com

  4. I have a c++ program that converts a plain text wordlist to the format used by puzzlepal. If you don't mind compiling it, I can upload the source code somewhere.

  5. I would not mind, it will be great to have this app ready for czech language! Could you send convertor sources on my email (jirka (dot) silhan (at) gmail (dot) com), or you like more some online upload service? Thanks a lot for great app!