mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-29 20:34:56 +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 (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),
|
// XXX: it is forbidden in duplicate mode (even passing is forbidden),
|
||||||
// but well, what else to do?
|
// but well, what else to do?
|
||||||
Rack rack;
|
return Move(L"");
|
||||||
getCurrentRack().getRack(rack);
|
|
||||||
return Move(rack.toString());
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue