hdbeukel / james-core

Core module of the JAMES framework
Apache License 2.0
6 stars 5 forks source link

Refactor rejectMove() #7

Closed hdbeukel closed 9 years ago

hdbeukel commented 9 years ago

Add rejected move as a parameter. The default behaviour defined in NeighbourhoodSearch does not use this (it simply updates number of rejected moves) but specific searches might want to override this behaviour, for any reason whatsoever.

For consistency reasons it is better to pass the move anyway, as is the case for acceptMove(move).