Dealer's Choice

Config

Server Config

The server reads data/server.conf on startup (or the file specified via --server-conf).

Password

Password authentication requires libsodium. If the build was compiled without it, any configured password is ignored and a warning is printed at startup.

To require players to authenticate before joining, set a password:

password = mysecretpassword

Leave the value empty (or omit the key) to allow anyone to connect without a password.

The DC_PASSWORD environment variable takes precedence over server.conf:

DC_PASSWORD=mysecretpassword ./dealers-choice --server

Clients can also also use either method for setting their password.

Admin controls

Any client that authenticates with the server password is granted admin status for that session. An admin can kick or ban other players during a lobby or game via the Kick / Ban buttons in the player list.

An admin cannot kick or ban themselves.

Bet amounts

The bet amount buttons shown during a game are configured as a comma-separated list:

bet_amounts = list, 100, 250, 500

Up to 8 values are supported. The hotkeys 18 map to each amount in order. The first value is also used to scale the coin display in the pot.


Player Config

When you run the client from a terminal, you’ll see the path to your config file. You can edit settings from the Settings menu on the startup screen, or by editing the file directly.

Sound

sound.volume = 7 # You can use a range of 0 - 10
sound.notify.turn = yes # Use "no" to disable your turn audio notification

Connection

connect.attempts = 6 # Number of connection attempts before giving up

Language

To use a language that is different from your system’s default:

language = de

The value must match the name of a .po translation file, without the .po ending.

You can see the available languages in the po directory.