Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Fleischman <[email protected]>
  • Loading branch information
lgarron and jfly authored Dec 15, 2023
1 parent eef926b commit c5d5597
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Map<String, PuzzleState> getSuccessorsByName() {
boolean clockwise = ( rot < 7 );
String move = turns[turn] + (clockwise?(rot+"+"):((12-rot)+"-"));

successors.put(move, new ClockState( positCopy, rightSideUp));
successors.put(move, new ClockState(positCopy, rightSideUp));
}
}

Expand Down Expand Up @@ -317,7 +317,7 @@ protected void drawPins(Svg g, Map<String, Color> colorScheme) {
for(int j = -1; j <= 1; j += 2) {
Transform tt = new Transform(t);
tt.translate(j*clockOuterRadius, i*clockOuterRadius);
drawPin(g, tt, colorScheme.get( rightSideUp ? "BackPin" : "FrontPin" ));
drawPin(g, tt, colorScheme.get(rightSideUp ? "BackPin" : "FrontPin"));
}
}

Expand Down

0 comments on commit c5d5597

Please sign in to comment.