Managing Equality

Game development with Board Game Arena Studio
Post Reply
Sandram
Posts: 4
Joined: 12 May 2011, 12:20

Managing Equality

Post 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.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Managing Equality

Post 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
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: Managing Equality

Post 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...)
Sandram
Posts: 4
Joined: 12 May 2011, 12:20

Re: Managing Equality

Post by Sandram »

Ok, thx for your answer.
Post Reply

Return to “Developers”