works still, bout to fuck it up

This commit is contained in:
Paul Liverman
2015-12-05 23:20:29 -08:00
parent 1dc98d80d3
commit 1446b2bf95
3 changed files with 51 additions and 40 deletions

View File

@@ -64,8 +64,11 @@ function Deck:shuffleCards()
end
function Deck:shuffleIn(card) --TODO make capable of handling multiple cards
--
--insert(self.cards, random(1, #self.cards)) --no, we shuffle everything!
insert(self.cards, card)
self:shuffleCards()
end
--TODO ? placeIn() to randomly place within without shuffling whole deck?
function Deck:drawCards(count)
if count and (count > 1) then
@@ -103,4 +106,8 @@ function Deck:placeCardsUnder(cards)
end
end
function Deck:getCards()
return self.cards
end
return Deck