wip(0.S3): the packages migrated by ludic migrate state packages - every package test green

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 14:02:21 +03:00
parent 1e8b5b0523
commit 07505e7ef2
294 changed files with 14996 additions and 14675 deletions

View file

@ -45,26 +45,31 @@ export property StepsFact {
step: int = 0
}
var steps__kinds: []StepsKind = null
var steps__n: []int = null # steps per chapter
var steps__kind: []int = null # STEPS_PER_CHAPTER per chapter
var steps__param: []int = null
var steps__need: []int = null
var steps__cur: int = 0
var steps__done: int = 0
var steps__facts: Queue<StepsFact> = null
export function steps_facts() -> Queue<StepsFact> {
if steps__facts == null { steps__facts = queue_new("steps.facts") }
return steps__facts
export state StepsState {
steps__players: int = 12
steps__col: []int = null # players * STEPS_PER_CHAPTER shares
steps__col_ch: int = -1 # the chapter they are about
steps__kinds: []StepsKind = null
steps__n: []int = null # steps per chapter
steps__kind: []int = null # STEPS_PER_CHAPTER per chapter
steps__param: []int = null
steps__need: []int = null
steps__cur: int = 0
steps__done: int = 0
steps__facts: Queue<StepsFact> = null
}
function steps__fact(what: int, ch: int, i: int) -> void {
export function steps_facts(base_st: mut BaseState, steps_st: mut StepsState) -> Queue<StepsFact> {
if steps_st.steps__facts == null { steps_st.steps__facts = queue_new(base_st, "steps.facts") }
return steps_st.steps__facts
}
function steps__fact(base_st: mut BaseState, steps_st: mut StepsState, what: int, ch: int, i: int) -> void {
let f = new StepsFact
f.what = what
f.chapter = ch
f.step = i
q_push(steps_facts(), f)
q_push(base_st, steps_facts(base_st, steps_st), f)
}
export function steps_popcount(m: int) -> int {