generated from VLADIMIR/template
19 lines
387 B
Go
19 lines
387 B
Go
// 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
|
|
}
|