Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

characters.gno

0.80 Kb · 23 lines
 1package engine
 2
 3// CharKeys are the 48 character tokens a player can pick.
 4var CharKeys = []string{
 5	"andy", "axe", "banker", "barkeep", "border_rider", "cattle_baron",
 6	"chief", "clerk", "driver", "dude", "eagle", "el_jefe", "fast_draw",
 7	"fast_eddie", "floozy", "foreman", "gambler", "guard", "gun_artist",
 8	"happy", "hawk", "ike", "innocente", "john_henry", "lady", "lightning",
 9	"ling_ho", "little_ernie", "lucky", "marshal", "mountain_man", "nco",
10	"old_man", "owner", "prospector", "quiet_man", "reb", "running_boy",
11	"slim", "smith", "sodbuster", "texas", "the_drifter", "the_kid",
12	"u_s_scout", "veteran", "woman", "yankee",
13}
14
15// IsCharKey reports whether s names one of the character tokens.
16func IsCharKey(s string) bool {
17	for _, k := range CharKeys {
18		if k == s {
19			return true
20		}
21	}
22	return false
23}