Skip to content

Commit 325aa5b

Browse files
committed
Write the rest of the comment
Forgot to finish this prior to project induction.
1 parent efd0732 commit 325aa5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

BinaryMatrixEngine/CardList.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
*/
1621
public sealed class CardList : IEnumerable<Card>, IDisposable {
1722

1823
private const bool FAIL_FAST_INVALID = true;

0 commit comments

Comments
 (0)