*
* @author Dmitry Samoshin aka gotty
*/
-public interface Move {
+public interface Move extends Comparable<Move> {
- int number();
+ int ply();
String move();
+ @Override
+ default int compareTo(Move move) {
+ return this.ply() - move.ply();
+ }
+
}