Main.java:31: error: incompatible types: cannot infer type-variable(s) T
moves.sort(Comparator.comparingInt(Move::getScore).reversed());
^
(argument mismatch; invalid method reference
incompatible types: Object cannot be converted to boolean)
where T is a type-variable:
T extends Object declared in method <T>comparingInt(ToIntFunction<? super T>)
Main.java:31: error: invalid method reference
moves.sort(Comparator.comparingInt(Move::getScore).reversed());
^
non-static method getScore() cannot be referenced from a static context
2 errors