Creates a encoder that encodes/decodes one card.
(Number?
= 0
)
index in the bits at which the encoded card is located
CardEncoder
:
a card encoder with
encode(String card)
and
decode(Number bits)
methods
Creates a encoder that encodes/decodes a specific number of cards.
(Number)
the number of cards to encode/decode
(Number?
= 0
)
index in the bits at which the encoded cards are located
CardsEncoder
:
a card encoder with
encode(String cards)
and
decode(Number bits)
methods
A 2 char string indicating a non present card as '??'
.
Type: String
Encodes a card.
The idx is taken into account so that an |
operation allows including
the encoded information into existing bits.
(String)
the card to encode
Number
:
the bits representing that card
Decodes a card.
The idx is taken into account so that the card can be decoded from within anywhere inside the given bits.
(Number)
the bits in which a card is encoded
String
:
the decoded card
Encodes a number of cards.
The idx is taken into account so that an |
operation allows including
the encoded information into existing bits.
Number
:
the bits representing the cards
Encodes a number of cards.
The idx is taken into account so that an |
operation allows including
the encoded information into existing bits.
(Number)
the bits in which the cards are encoded
Array<String>
:
the decoded cards