Pingtung Plain, Tac-tac & Poritia

This commit is contained in:
nik gaffney 2020-11-18 00:16:47 +01:00
parent ce6d0dd7a3
commit 6388d74030

View file

@ -142,9 +142,7 @@ $shuffle.addEventListener('click', function () {
deck.shuffle()
deck.shuffle()
})
$sort.addEventListener('click', function () {
deck.sort()
})
$bysuit.addEventListener('click', function () {
deck.sort(true) // sort reversed
deck.bysuit()
@ -152,22 +150,6 @@ $bysuit.addEventListener('click', function () {
$fan.addEventListener('click', function () {
deck.fan()
})
$flip.addEventListener('click', function () {
deck.flip()
})
$poker.addEventListener('click', function () {
deck.queue(function (next) {
deck.cards.forEach(function (card, i) {
setTimeout(function () {
card.setSide('back')
}, i * 7.5)
})
next()
})
deck.shuffle()
deck.shuffle()
deck.poker()
})
deck.mount($container)