Commit e618d98e authored by ceddral's avatar ceddral
Browse files

game: implement human-readable extension names

parent 86d51d5b
......@@ -205,6 +205,17 @@ func tokensByExtension(ext string) map[Token]int {
}
}
func extensionToString(ext string) string {
switch ext {
case "base":
return "Base game"
case "ext1":
return "Inns and Cathedrals"
default:
panic(fmt.Sprintf("unknown extension <%s>", ext))
}
}
// example menu layout
// ____________________
// Turn: since
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment