feat: westworldwithwoman. add elsa

This commit is contained in:
jonas committed 2026-09-03 21:28:28 +02:00
1 parent 2764849943
commit 0e7482e04c
28 files changed
+1946

No files matched your search

@@ -0,0 +1,22 @@
// Command westworld runs a tiny demo of the finite state machine
// built in the westworld package: it creates one miner and lets him
// tick forward on his own, watching his state machine drive him
// around the loop (sleep -> dig -> bank/saloon -> sleep, ...).
package main
import (
"fmt"
"git.jjstudio.me/jonas/Programming-Game-AI-by-Example-Go/chapter-2-state-driven-agent-design/westworld"
)
func main() {
bob := westworld.NewMiner(1)
const numUpdateSteps = 30
for range numUpdateSteps {
bob.Update()
}
fmt.Println()
}