File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ namespace BinaryMatrix.Engine;
1212 *
1313 * (honestly optimizing this doesn't matter except for rapidly simulating games, so this is more of an academic thing)
1414 */
15- /* Note on ordering: For optimization purposes, */
15+ /* Note on ordering: For optimization purposes, these lists are typically ordered such that the 'next card to remove' is the last item in the list.
16+ * What 'next card to remove' means depends on the list:
17+ * * For attacker/defender stacks, this is the last played card.
18+ * * For lane decks and the attacker draw deck, this is the next card to draw.
19+ * * For discard piles, this is undefined; so we simply use the last inserted card.
20+ */
1621public sealed class CardList : IEnumerable < Card > , IDisposable {
1722
1823 private const bool FAIL_FAST_INVALID = true ;
You can’t perform that action at this time.
0 commit comments