eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/game ai_percent.cpp


From: Olivier Teulière
Subject: [Eliot-dev] eliot/game ai_percent.cpp
Date: Sun, 30 Nov 2008 21:09:37 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      08/11/30 21:09:37

Modified files:
        game           : ai_percent.cpp 

Log message:
        The AI passes instead of changing letters when it has nothing to play

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/ai_percent.cpp?cvsroot=eliot&r1=1.10&r2=1.11

Patches:
Index: ai_percent.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/ai_percent.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- ai_percent.cpp      22 Nov 2008 14:40:25 -0000      1.10
+++ ai_percent.cpp      30 Nov 2008 21:09:37 -0000      1.11
@@ -53,12 +53,10 @@
 {
     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
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]