Adapting Java code(a puzzle solver) to Android
This is my Java code to solve this puzzle. I have a little experience on Android. I want to transfer my code to Android. I tried but I couldn't run the code on android. Is it possible easily? How?
public class WordPuzzle {
public Set<String> findWords(char[][] puzzle, Set<String> words) {
private int findMinim开发者_如何学GoumWordLength(Set<String> words) {
private Set<String> findPossibleWords(char[][] puzzle, int minimumWordLength) {
public WordPuzzle() {
}
Your code should work perfectly well as the center of the Android work. You will need to add an android user interface, which is a fair amount of work.
Can I suggest the "Hello Android" book which has a Sudoku puzzle UI as an example
There is a lot of documentation about installing Android SDK. You can start here: http://developer.android.com/sdk/installing.html
精彩评论