Limit player name length
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -57,6 +57,8 @@ pub struct PlayConfiguration {
|
||||
pub max_boats_number: usize,
|
||||
pub bot_types: &'static [BotDescription],
|
||||
pub ordinate_alphabet: &'static str,
|
||||
pub min_player_name_len: usize,
|
||||
pub max_player_name_len: usize,
|
||||
}
|
||||
|
||||
impl Default for PlayConfiguration {
|
||||
@@ -72,6 +74,8 @@ impl Default for PlayConfiguration {
|
||||
max_boats_number: MAX_BOATS_NUMBER,
|
||||
bot_types: &BOTS_TYPES,
|
||||
ordinate_alphabet: ALPHABET,
|
||||
min_player_name_len: MIN_PLAYER_NAME_LENGTH,
|
||||
max_player_name_len: MAX_PLAYER_NAME_LENGTH,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user