jonas 2764849943 feat: add Chapter 2 gold miner FSM example in Go
Port the finite state machine from "Programming Game AI by Example"
chapter 2: BaseGameEntity, a generic State[T]/StateMachine[T] pair
(Go generics standing in for the book's C++ templates), and a Miner
that cycles through digging, banking, sleeping, and drinking states.
VisitBankAndDepositGold, GoHomeAndSleepTilRested, and QuenchThirst
are original implementations based on the book's written behavior
description, since their C++ source wasn't available. Includes a
runnable demo in main.go.
2026-09-03 11:36:05 +02:00
2026-09-03 09:36:50 +02:00
2026-09-03 09:36:50 +02:00
2026-09-03 09:36:50 +02:00

Programming-Game-AI-by-Example-Go

The code for Mat Bucklands book, Programming Game AI by Example. Written in Go instead of C++.

S
Description
The code for Mat Bucklands book, Programming Game AI by Example. Written in Go instead of C++.
Readme MIT
97 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%