mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-17 06:11:49 +01:00
The AI passes instead of changing letters when it has nothing to play
This commit is contained in:
parent
c4f64c25e1
commit
687a31bee8
1 changed files with 2 additions and 4 deletions
|
@ -53,12 +53,10 @@ Move AIPercent::getMove() const
|
|||
{
|
||||
if (m_results.size() == 0)
|
||||
{
|
||||
// If there is no result, change all the letters
|
||||
// If there is no result, pass the turn.
|
||||
// XXX: it is forbidden in duplicate mode (even passing is forbidden),
|
||||
// but well, what else to do?
|
||||
Rack rack;
|
||||
getCurrentRack().getRack(rack);
|
||||
return Move(rack.toString());
|
||||
return Move(L"");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue