wip(0.S3): packages and examples migrated in one run - ludic migrate state packages <every example program> packages/ludic.lab/example/plate.ludic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:02:45 +03:00
parent d490d4f9f1
commit 3eda72e8c2
172 changed files with 3094 additions and 2966 deletions

View file

@ -1,10 +1,12 @@
# shop/index.ludic - private names a neighbour also uses: seed, dice, LIMIT
module shop
var dice: int = 100
export state ShopState {
dice: int = 100
}
const LIMIT: int = 5
function seed() -> int {
return dice + LIMIT
function seed(shop_st: ShopState) -> int {
return shop_st.dice + LIMIT
}
export function shop_seed() -> int {
return seed()
export function shop_seed(shop_st: ShopState) -> int {
return seed(shop_st)
}