# Player cards left count

**URL:** <https://forum.vassalengine.org/t/player-cards-left-count/3942>\
**Category:** Module Design\
**Created:** [May 24, 2011, 3:39pm UTC](https://forum.vassalengine.org/t/player-cards-left-count/3942 "2011-05-24T15:39:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarjar26](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarjar26](https://forum.vassalengine.org/u/jarjar26)\
**Post date:** [May 24, 2011, 3:39pm UTC](https://forum.vassalengine.org/t/player-cards-left-count/3942/1 "2011-05-24T15:39:08Z")

</div>

Hi list,

I’m working on a two players CDG game module, and would like to know if there is a way to show how many cards left on their hands for each player ?

Thanks !

Michael

---

<div class="post-metadata">

**Author:** ![tar](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tar/32/21_2.png) [@tar](https://forum.vassalengine.org/u/tar)\
**Post date:** [May 24, 2011, 4:46pm UTC](https://forum.vassalengine.org/t/player-cards-left-count/3942/2 "2011-05-24T16:46:44Z")

</div>

On May 24, 2011, at 8:39 AM, jarjar26 wrote:

> Hi list,  
> I’m working on a two players CDG game module, and would like to know  
> if  
> there is a way to show how many cards left on their hands for each  
> player ?

I thought there was a thread on something related recently, but I  
can’t seem to locate it.

If the player hands are decks, then there is direct support for  
counting the number of cards in a deck.

If the player hands are separate maps, then you would have to  
implement a trigger-based counting method so that whenever a card is  
placed on a particular map the counter is incremented and when a card  
is moved away the counter is decremented. I think the first one is  
pretty straight-forward, but I’m not completely sure about how to do  
the second part.

---

<div class="post-metadata">

**Author:** ![tar](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tar/32/21_2.png) [@tar](https://forum.vassalengine.org/u/tar)\
**Post date:** [May 24, 2011, 4:49pm UTC](https://forum.vassalengine.org/t/player-cards-left-count/3942/3 "2011-05-24T16:49:14Z")

</div>

On May 24, 2011, at 9:46 AM, Thomas Russ wrote:

> On May 24, 2011, at 8:39 AM, jarjar26 wrote:
> 
> > Hi list,  
> > I’m working on a two players CDG game module, and would like to  
> > know if  
> > there is a way to show how many cards left on their hands for each  
> > player ?
> 
> I thought there was a thread on something related recently, but I  
> can’t seem to locate it.

Ah, I found the post. Go to  
[viewtopic.php?f=6&t=2854&start=0&hilit=count+player+hand](http://www.vassalengine.org/forum/viewtopic.php?f=6&t=2854&start=0&hilit=count+player+hand)

---

<div class="post-metadata">

**Author:** ![wifferboy](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/a183cd/32.png) [@wifferboy](https://forum.vassalengine.org/u/wifferboy)\
**Post date:** [May 24, 2011, 8:36pm UTC](https://forum.vassalengine.org/t/player-cards-left-count/3942/4 "2011-05-24T20:36:54Z")

</div>

If its oK for everyone to see it, this is much easier and worked great for me:

[https://forum.vassalengine.org/t/number-of-pieces-left-in-a-deck/3776/1](https://forum.vassalengine.org/t/number-of-pieces-left-in-a-deck/3776/1)
