This commit is contained in:
2026-10-12 15:58:24 +07:00
parent 0e20c3e151
commit 7fe8c6a5f0
18 changed files with 1314 additions and 149 deletions
+18
View File
@@ -0,0 +1,18 @@
// Package docs embeds the canonical game rules used in printable materials.
package docs
import _ "embed"
//go:embed GAME_RULES_ONLINE.md
var onlineRules string
//go:embed GAME_RULES_OFFLINE.md
var offlineRules string
// GameRules returns the rules for a game's format.
func GameRules(format string) string {
if format == "offline" {
return offlineRules
}
return onlineRules
}