# Dealing

**URL:** <https://forum.vassalengine.org/t/dealing/3630>\
**Category:** Module Design\
**Created:** [January 31, 2011, 4:12pm UTC](https://forum.vassalengine.org/t/dealing/3630 "2011-01-31T16:12:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YearofGlad](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/y/b782af/32.png) [@YearofGlad](https://forum.vassalengine.org/u/YearofGlad)\
**Post date:** [January 31, 2011, 4:12pm UTC](https://forum.vassalengine.org/t/dealing/3630/1 "2011-01-31T16:12:02Z")

</div>

I have a module with a window in which I have a deck of 60 tiles that is set to always shuffle. I have a map window in which I have a hex grid with 60 locations. At the beginning of each game, the 60 hex spaces need to be filled with the 60 tiles in random order. Is there any way to automate a “deal” action, where a single button will populate each of the 60 spaces with a random one of the 60 tiles?

Thanks.

---

<div class="post-metadata">

**Author:** ![pgeerkens](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/pgeerkens/32/117_2.png) [@pgeerkens](https://forum.vassalengine.org/u/pgeerkens)\
**Post date:** [January 31, 2011, 4:31pm UTC](https://forum.vassalengine.org/t/dealing/3630/2 "2011-01-31T16:31:00Z")

</div>

Check out this post for ideas on laying pieces out in a neat array:  
[https://forum.vassalengine.org/t/all-the-dead-in-nice-neat-rows/3570/1](https://forum.vassalengine.org/t/all-the-dead-in-nice-neat-rows/3570/1)

Here is a utility for automatic hot-key invocation on game load:  
[https://forum.vassalengine.org/t/globalkeycommand-autoexec-on-start-up/3574/1](https://forum.vassalengine.org/t/globalkeycommand-autoexec-on-start-up/3574/1)

Pieter

-----Original Message-----  
From: [messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)  
[[mailto:messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)] On Behalf Of YearofGlad  
Sent: Monday, January 31, 2011 11:12 AM  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Subject: [messages] [Module Design] Dealing

I have a module with a window in which I have a deck of 60 tiles that is  
set to always shuffle. I have a map window in which I have a hex grid  
with 60 locations. At the beginning of each game, the 60 hex spaces need  
to be filled with the 60 tiles in random order. Is there any way to  
automate a “deal” action, where a single button will populate each of  
the 60 spaces with a random one of the 60 tiles?

Thanks.

* * *

Read this topic online here:  
[https://forum.vassalengine.org/t/dealing/3630/1](https://forum.vassalengine.org/t/dealing/3630/1)

---

<div class="post-metadata">

**Author:** ![YearofGlad](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/y/b782af/32.png) [@YearofGlad](https://forum.vassalengine.org/u/YearofGlad)\
**Post date:** [January 31, 2011, 7:46pm UTC](https://forum.vassalengine.org/t/dealing/3630/3 "2011-01-31T19:46:16Z")

</div>

Thanks - after a little more searching on here, I found a topic specific to dealing cards/tiles.

[url][https://forum.vassalengine.org/t/a-deck-question/1476/1](https://forum.vassalengine.org/t/a-deck-question/1476/1)]

However, the link you provided about the automatic hot-key invocation was helpful, too!

Thanks.
