Commit graph

4 commits

Author SHA1 Message Date
Olivier Teulière
7dda601599 MoveSelector: add one more heuristic (deactivated for now) 2013-01-19 00:36:08 +01:00
Olivier Teulière
a53d99a8d3 MoveSelector: add another heuristic 2013-01-19 00:36:08 +01:00
Olivier Teulière
075dbaa2fb MoveSelector: add a new heuristic (deactivated for now) 2013-01-19 00:36:08 +01:00
Olivier Teulière
664eec36ed New MoveSelector class, to help find the "best" move to play.
The best move has the highest possible score, but it is also the one
leading to the most interesting game. This is a subjective notion, but
some heuristics can help, such as:
 - a move sparing a blank is better than one using it
 - a move with many prefixes and suffixes is better than one without
   extensions
 - a move "opening" the game is better than one blocking it
 - a move leaving a nice rack is better than one leaving "bad" letters

At the moment, only the first heuristic is implemented.
2013-01-16 19:00:01 +01:00