MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / image

Method image

app/src/main/java/solver/Domino.java:151–164  ·  view source on GitHub ↗
(String scr)

Source from the content-addressed store, hash-verified

149 }
150
151 public static int[] image(String scr) {
152 initColor();
153 String[] s = scr.split(" ");
154 for (int i = 0; i < s.length; i++)
155 if (s[i].length() > 0) {
156 int mov = "UDLRFB".indexOf(s[i].charAt(0));
157 move(mov);
158 if (s[i].length() > 1 && mov < 2) {
159 move(mov);
160 if (s[i].charAt(1) == '\'') move(mov);
161 }
162 }
163 return img;
164 }
165}

Callers 1

drawScrambleMethod · 0.95

Calls 4

initColorMethod · 0.95
moveMethod · 0.95
lengthMethod · 0.80
indexOfMethod · 0.80

Tested by

no test coverage detected