To compare the fitness of different moves, we need to implement support for the Comparable interface
in the MoveFitness class.
In the compareTo method, compare the numbers of empty tiles (numberOfEmptyTiles) first. If the number of empty
tiles is equal, then compare the scores (score).
2048 (part 15)
- 36
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet