package
0.0.0-20191230163237-a30599c1cba0
Repository: https://github.com/mjm/advent-of-code-2019.git
Documentation: pkg.go.dev
# Functions
ComposeTechniques creates a new shuffling technique that has the same result as performing the given sequence of techniques.
ParseAllTechniques reads a technique from each line of the given string.
ParseTechnique reads a technique from a string description.
Perform applies a shuffling technique to a particular position in a deck.
RepeatTechnique creates a new shuffling technique that is the result of repeating the given technique a certain number of times.
ShuffleFind shuffles position i using the given techniques, and returns the position in the deck where that card ended up after shuffling.
ShuffleN shuffles using the given techniques for several times in a row, and returns the card at the ith position.
# Interfaces
Technique is an interface for methods of shuffling a deck of cards.