A ClockWorld port (owns_world, rest_scale, seed), verbs to set and advance it, clock_new_day, a DayTurned queue (stayed up past midnight, or slept), a calendar whose month, year and season are pure functions of the day, and a System (PH_INPUT) with its own save section. Nine test blocks in tests/clock_test.ludic with fakes for the port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
353 B
Text
10 lines
353 B
Text
# ludic.clock - one clock for a whole world: the hour, the day, the moon's place in its month and
|
|
# where the day falls in a calendar the game describes; a day turning is a fact on a queue
|
|
module ludic_clock
|
|
numbers float
|
|
import "ludic.base"
|
|
import "state.ludic"
|
|
import "verbs.ludic"
|
|
import "queries.ludic"
|
|
import "calendar.ludic"
|
|
import "system.ludic"
|