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.

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

Here is a utility for automatic hot-key invocation on game load:
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] On Behalf Of YearofGlad
Sent: Monday, January 31, 2011 11:12 AM
To: 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

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]

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

Thanks.