File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ namespace BinaryMatrix.Engine;
12
12
*
13
13
* (honestly optimizing this doesn't matter except for rapidly simulating games, so this is more of an academic thing)
14
14
*/
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
+ */
16
21
public sealed class CardList : IEnumerable < Card > , IDisposable {
17
22
18
23
private const bool FAIL_FAST_INVALID = true ;
You can’t perform that action at this time.
0 commit comments