# ANN: Cards.jl

**URL:** <https://discourse.julialang.org/t/ann-cards-jl/2523>\
**Category:** General Usage\
**Created:** [March 7, 2017, 8:03am UTC](https://discourse.julialang.org/t/ann-cards-jl/2523 "2017-03-07T08:03:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 7, 2017, 5:07pm UTC](https://discourse.julialang.org/t/ann-cards-jl/2523/10 "2017-03-07T17:07:11Z")

</div>

Note that this `Hand` data structure assumes that there is only one of each card, which doesn’t work for games like pinochle that have 2 (or more) of each card (by combining multiple standard decks or by using custom decks). And the `Hand` constructor doesn’t check for this possibility (it ignores cards that appear more than once).

(Also, pinochle uses a nonstandard card ranking: A 10 K Q J 9, and there are no cards below a 9. So maybe it is too weird to support. 😉 )

---

_[View the full topic](https://discourse.julialang.org/t/ann-cards-jl/2523)._
