Page 1 of 1

Adding player spoils to gamelist API

PostPosted: Thu Mar 22, 2012 11:34 pm
by runewake2
This would be an extremely useful addition. Not sure what else to say.

It would add that extra point of detail to my app that it doesn't have right now.

Re: Adding player spoils to gamelist API

PostPosted: Fri Mar 23, 2012 5:00 am
by Dako
Interesting, but either that has to be session protected, or we will be able to get info of other people spoils which is not good at all.

Re: Adding player spoils to gamelist API

PostPosted: Fri Mar 23, 2012 11:33 am
by runewake2
I just want a number, not the actual cards. As the number is publicly available this should not violate anything.

Simply knowing the number of cards a player owns can drastically effect my strategy, so it would be nice to be able to view this.

Edit: I take back what I just said, it turns out spoil numbers are not publicly available.

Re: Adding player spoils to gamelist API

PostPosted: Fri Mar 23, 2012 4:30 pm
by chapcrap
runewake2 wrote:I just want a number, not the actual cards. As the number is publicly available this should not violate anything.

Simply knowing the number of cards a player owns can drastically effect my strategy, so it would be nice to be able to view this.

Edit: I take back what I just said, it turns out spoil numbers are not publicly available.

They are available to the public. I can look in games I'm not in right now and see how many spoils people have.

Re: Adding player spoils to gamelist API

PostPosted: Fri Mar 23, 2012 5:01 pm
by runewake2
oh, my bad, seems the ones I was looking at had no spoils. Then I ask again for the numbers.

Re: Adding player spoils to gamelist API

PostPosted: Sat Mar 24, 2012 10:59 am
by ben1212
it would be useful to see what colour of spoils that the other players have. But if you know your opponents spoils in a nuke game, then its not as fun

Re: Adding player spoils to gamelist API

PostPosted: Sat Mar 24, 2012 11:20 am
by ThrushAAX
This makes quite a bit of sense. Maybe adding another attribute to the player tag in the gamelist response for the number of cards would work and be simple.

Re: Adding player spoils to gamelist API

PostPosted: Sat Mar 24, 2012 5:30 pm
by SaviorShot
I just want an invite warning. And a back button. Spoils u can always see once u enter the game. This app is awesome so far. Saves me so much time not having I log in every time.

Re: Adding player spoils to gamelist API

PostPosted: Sat Mar 24, 2012 8:46 pm
by runewake2
Question Mark. My app is not available yet, it is currently undergoing certification by Microsoft. I do not make, nor have anything to do with the IPhone or Android apps for CC.

Also ben1212. showing colors would be very bad. You can't tell if others can play their spoils or not, simple adding an attribute that would contain the spoils would be great and shouldn't be too difficult. Perhaps displaying "NS" or "-1" if the player is playing a game without spoils, though I guess I could just read a few other attributes...

Re: Adding player spoils to gamelist API

PostPosted: Tue Sep 11, 2012 7:25 pm
by runewake2
I'm going to bump this, because I feel it's kind of important.

All I am looking for is changing the output of the gamelist API to include each players spoils as an attribute to that player. So that instead of this:

Code: Select all
<players>
<player state="Waiting">
567199
</player>
<player state="Waiting">
427135
</player>
<player state="Lost">
577500
</player>
<player state="Waiting">
591399
</player>
<player state="Waiting">
577281
</player>
<player state="Ready">
582395
</player>
</players>


It would return something like this:

Code: Select all
<players>
<player state="Waiting" spoils="4">
567199
</player>
<player state="Waiting" spoils="5">
427135
</player>
<player state="Lost" spoils="0">
577500
</player>
<player state="Waiting" spoils="3">
591399
</player>
<player state="Waiting" spoils="2">
577281
</player>
<player state="Ready" spoils="3">
582395
</player>
</players>