2048 (part 15)

  • 36
  • Locked
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).
You can't complete this task, because you're not signed in.
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet