Answer prose round 1: 0 🔴, 15 🟡; say a blocker ranks above every item it blocks, give each pronoun one referent, put the upgrade step first in the changelog, say does not wait throughout
This commit is contained in:
+1
-2
@@ -26,7 +26,6 @@ class Item:
|
||||
tagline: str
|
||||
scores: dict[str, int]
|
||||
goals: tuple[str, ...]
|
||||
# The IDs of the items that block it.
|
||||
blocked_by: tuple[int, ...]
|
||||
|
||||
@property
|
||||
@@ -80,7 +79,7 @@ def items_table(lines: list[str]) -> Table | None | Failure:
|
||||
|
||||
|
||||
def waiting(found: list[Item]) -> set[int]:
|
||||
"""The IDs of the items that wait: each marked question, or blocked by an item the table still holds. It holds in any order of the rows."""
|
||||
"""The IDs of the items that wait: each marked question, or blocked by an item the table still holds. Row order does not change the result."""
|
||||
held = {item.id for item in found}
|
||||
return {item.id for item in found if item.exempt == "question" or held.intersection(item.blocked_by)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user