Page 1 of 1

Managing Equality

Posted: 14 February 2013, 16:20
by Sandram
Hello,

I have to deal with a case of equality. So I let player's score at 0 in the database and notify :

Code: Select all

// Notify final score
			$this->notifyAllPlayers( "finalScore",
					clienttranslate( 'Nobody wins' ),
					array()
			);
But, the window title is still "End of the Game, XXX wins "
How can i change this title ?

Thank you.

Re: Managing Equality

Posted: 16 February 2013, 13:57
by Een
Hello,

You are right, even if players are perfectly tied for victory, the end of game popup says "End of the Game, XXX wins", with XXX the first player in the player order.
This is not something that you can't change from the game implementation, it is in the framework.
Maybe we should change it so that it displays only 'End of game' in this case. Anyway this is some work for us, not for you ;)

Cheers,
Een

Re: Managing Equality

Posted: 17 February 2013, 10:58
by sourisdudesert
Hello,

Een is perfectly right. I just want to add that this is only a display bug: players are considered tie by the website anyway (ex: for ELO scores...)

Re: Managing Equality

Posted: 18 February 2013, 21:39
by Sandram
Ok, thx for your answer.