Skip to content
Snippets Groups Projects
Commit 598f9120 authored by ACHARD Romain's avatar ACHARD Romain
Browse files

turn

parent 9d8e66a8
Branches
No related tags found
No related merge requests found
...@@ -20,4 +20,8 @@ public enum Direction { ...@@ -20,4 +20,8 @@ public enum Direction {
return "from right to left"; return "from right to left";
} }
}; };
public Direction turn() {
return this == LR ? RL : LR;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment