feat!: add newtype struct Deck with associated methods
authorMA Beaudet <ma@beaudet.xyz>
Mon, 8 Nov 2021 12:17:23 +0000 (13:17 +0100)
committerMA Beaudet <ma@beaudet.xyz>
Mon, 8 Nov 2021 12:17:23 +0000 (13:17 +0100)
commit519057f1e8168f1a28320aa812bcc3fba08dbb52
tree5aaf51233e8db5617d29cdac449a3a362696135e
parentc6554c5cec38d67a4b186896df65ffd16f99b0f0
feat!: add newtype struct Deck  with associated methods

Methods associated to Deck `get()` `init_deck()`(changed to Default) and
others have been moved from Cards to newtype struct Deck.
Functions definitions and returned values are also more coherent.
examples/simulation.rs
src/lib.rs