コード例 #1
0
 private static void printStep(Step step) {
   System.out.println(String.format("from: %s to: %s", step.getFromPeg(), step.getToPeg()));
 }
コード例 #2
0
 public static int calculateHelpPeg(Step step) {
   return 6 - step.getFromPeg() - step.getToPeg();
 }
コード例 #3
0
 public static Step getHelpStep(Step step) {
   return new Step(step.getFromPeg(), calculateHelpPeg(step));
 }