[game]

# The hand size for the guessers
hand_size = 7

# The length of the game codes that are randomly generated to allow others
code_length = 6

# The names that the server uses for the writer/guessers, these are really only
# used in error responses.
writer_name = "Spirit"
guesser_name = "Medium"

# The limit of players that are allowed to be guessers on each team.
guesser_limit = 7

[game.cards]

# The type of data we are fetching for using in the cards. Accepted values are:
#	- "csv"
#	- "sheets"
# Any other value will prevent the server from starting.
type = "csv"


# The Google Sheets document ID, this is used to specify the document as a whole,
# not the specific sheet inside, for that see the "fingerprint" property. This
# will be ignored if the type is set to "csv"
key = ''


[game.cards.questions]
# The identifier for the questions cards.
#	- If "type" is "csv", then this is a filepath relative to the working
#		directory of the CLI instantiating the server. (or an absolute path)
#	- If "type" is "sheets", then this is a sheet identifier used by Google
#		Sheets to indicate which sheet to use when downloading the content.
#		In the published URL, this is the sequence of number between the
#		`gid=` and the `&`, so if the URL has `gid=123456789&`, the fingerprint
#		would be `123456789`.
fingerprint = ''

# The zero-indexed column number to use when getting the question text.
column = 0

[game.cards.objects]
# The identifier for the object cards.
#	- If "type" is "csv", then this is a filepath relative to the working
#		directory of the CLI instantiating the server. (or an absolute path)
#	- If "type" is "sheets", then this is a sheet identifier used by Google
#		Sheets to indicate which sheet to use when downloading the content.
#		In the published URL, this is the sequence of number between the
#		`gid=` and the `&`, so if the URL has `gid=123456789&`, the fingerprint
#		would be `123456789`.
fingerprint = ''


[websocket]
# The port the websocket server should run on. This is the port that you will
# need to target for the web server's reverse proxy, or the specific URI in the
# web code itself.
port = 8081

# The hostnames (and protocols) that are allowed to connect to the server. For
# CORS protection, this should not be set to "*", an array of hostnames is
# allowed, an example can be seen commented out below:
# permitted_hosts = [
#	"http://localhost:8080",
#	"http://127.0.0.1:8080"
# ]
permitted_hosts = "http://localhost:8080"


[datastores]

# Whether or not to save games that are active to the server's hard drive when
# it crashes for whatever reason. This will also enable loading of those games
# on server startup and allows game clients to reconnect to the game.
enabled = false

# The file extension used to save and load the datastore files.
filetype = "game"

# The filepath pointing to where to save the datastore files to. This can
# either be a relative or absolute filepath.
directory = ""


[log]
# The log level to output to the CLI, this can be one of the following:
#	- "silly"
#	- "debug"
#	- "info"
#	- "warn"
#	- "error"
#	- "trace"
# any other value will prevent the server from starting at runtime.
level = "info"

# Whether or not the log should output the date and time information in the log
datetime = true