[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 50023] New: A bug in AI code causes suboptimal play
From:       Lev Makhlis <wnsl0yc02 () sneakemail ! com>
Date:       2002-11-01 3:57:04
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=50023     
           Summary: A bug in AI code causes suboptimal play
           Product: lskat
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: martin@heni-online.de
        ReportedBy: wnsl0yc02@sneakemail.com


Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          GCC 3.2 
OS:          Linux

Line 114 in lskatproc.cpp should be card=GetCard(player,i,j+1);

Because of the wrong index (j instead of j+1), AI now only calculates
only one ply as soon as any pile is empty (because GetCard() returns -1,
and the endgame flag gets overwritten).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic