generated from VLADIMIR/template
up
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user