aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-script/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 20:36:18 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 20:36:18 +0300
commit108dd67da99f9832d2e65e5e18f7d25cc2dfc9ed (patch)
treeed0e44c81aacd8fa91512e10ac0092353700bd5d /crates/fparkan-script/src/lib.rs
parentc930b4e3a4a693ebcee2e46005c32d42567449d7 (diff)
downloadfparkan-108dd67da99f9832d2e65e5e18f7d25cc2dfc9ed.tar.xz
fparkan-108dd67da99f9832d2e65e5e18f7d25cc2dfc9ed.zip
feat(ai): start the highest-priority clan script problem
Open the matching Start section after Problems0, expose its arguments, and support completion and unreserved placed-unit selection. Two Fortresses enters its laboratory job and reaches Handler(6). Timing, ties and continuation remain explicit approximations.
Diffstat (limited to 'crates/fparkan-script/src/lib.rs')
-rw-r--r--crates/fparkan-script/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/fparkan-script/src/lib.rs b/crates/fparkan-script/src/lib.rs
index 2c3eccf1..336828ea 100644
--- a/crates/fparkan-script/src/lib.rs
+++ b/crates/fparkan-script/src/lib.rs
@@ -2021,6 +2021,11 @@ impl Handler2RecordScheduler {
&self.records
}
+ /// Forgets a solved problem so a later submission can create it again.
+ pub fn remove(&mut self, key: Handler2RecordKey) {
+ self.records.retain(|record| record.key != key);
+ }
+
/// Inserts or refreshes one resolved handler input.
///
/// The original compares the three identity words bit-for-bit. On an