Skip to content

Instantly share code, notes, and snippets.

@brine
Last active December 17, 2015 22:09
Show Gist options
  • Save brine/5679952 to your computer and use it in GitHub Desktop.
Save brine/5679952 to your computer and use it in GitHub Desktop.
1. paste this def below in the dev console
def setup(group):
starting = group[0]._id
count = 0
group.shuffle()
for c in group:
c.moveToTable(c.width()*(c._id - starting), c.height()*count)
count += 1
2. Load a deck
3. Trigger the function by pasting this call below into the dev console (replace group name with whatever the group is called):
setup(me.piles[groupname])
4. Repeat steps 2 and 3 until you're convinced the shuffler isn't faulty
@BenMatteson
Copy link

seems to be me.groupname now.

@brine
Copy link
Author

brine commented Nov 26, 2013

you can do both as long as your groupname is one word. Otherwise you have to do the longer way of me.piles[groupname], such as me.piles["Discard Pile"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment