Closed scheinerman closed 3 years ago
Also: I think this behavior is what you want, but I don't understand why.
julia> using PlayingCards
julia> typeof(A♣) == typeof(5♣)
false
julia> typeof(5♡) == typeof(5♣)
false
Versus:
julia> using PlayingCards52
julia> typeof(5♡) == typeof(5♣)
true
julia> typeof(A♣) == typeof(5♣)
true
Hmm, yes, this should be more protective. And after looking a bit more into hand evaluators, it seems that the rank types are really not beneficial. I'm not sure that I'm ready to remove the suit type, but I think it's clear that the rank types can't be leveraged due to combinatorial explosion.
I'll start by removing the ranks in #16.
[ k*♣ for k=1:13 ]
and, in addition, 0*♣
and 14*♣
will throw errors.
Hi Charlie:
Is this the behavior you want?
I've got mine rigged to do this: