private static List < Character > stringToCharList ( String boardString ) { // Turn the goal state into a list of characters char [ ] chars = new char [ 9 ] ; boardString . getChars ( 0 , 9 , chars , 0 ) ; List < Character > charList = new ArrayList < Character > ( ) ; for ( int l = 0 ; l < 9 ; l ++ ) { charList . add ( chars [ l ] ) ; } return charList ; }
Turns a string representation of the board into a list of characters .