Bug 57516

Summary: 1st player's turn when dead
Product: [Applications] konquest Reporter: tom
Component: generalAssignee: Russell Steffen <rsteffen>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description tom 2003-04-21 17:39:34 UTC
Version:            (using KDE KDE 3.1KDE 3.0.4KDE 1.2)
Installed from:    RedHat RPMsRedHat RPMsRedHat RPMs
OS:          Linux

If the 1st player no longer has any planets at the begining of each round it's the 1st player's turn instead of it being the 1st alive person's turn. So you have to press the end turn botton.
Comment 1 tom 2003-04-30 02:19:43 UTC
Subject: Re:  1st player's turn when dead

Hi Russell

I'm the one who reported this bug, I haven't had a look at the code, but I've written a few games and I'm guessing that there's a method for the next players turn. In my Java code it looks like this:

   public void nextPlayer()
     {
      if (currentPlayer < noOfPlayers-1)
        {
         currentPlayer++;
        }
      else
        {
         currentPlayer = 0;
        }
     }

Assuming there's something similar it's probably a case of changing the else part select the next alive player. Although this is where you'll have to work your magic because my C isn't very good.

Hope this helps

Tom
tom@tomk.homelinux.org


On 29 Apr 2003 05:40:38 -0000
Russell Steffen <rsteffen@bayarea.net> wrote:

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=57516     
> rsteffen@bayarea.net changed:
> 
>            What    |Removed                     |Added
> -----------------------------------------------------------------------
> -----
>              Status|UNCONFIRMED                 |ASSIGNED
>       everconfirmed|0                           |1

Comment 2 Russell Steffen 2003-05-11 01:31:53 UTC
Fixed in both HEAD and KDE_3_1_BRANCH (I think that means it wil be in KDE 3.1.2). 
 
Added a loop at the beginning of a new turn to look for the first player that's still in the 
game. 
Comment 3 Russell Steffen 2003-05-11 01:32:09 UTC
*** Bug has been marked as fixed ***.