Limit player name length
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-10-16 18:51:05 +02:00
parent e0132b68ed
commit b1145cc362
5 changed files with 31 additions and 1 deletions

View File

@ -21,3 +21,6 @@ pub const MULTI_PLAYER_PLAYER_BOATS: [usize; 5] = [2, 3, 3, 4, 5];
pub const ALPHABET: &str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
pub const INVITE_CODE_LENGTH: usize = 5;
pub const MIN_PLAYER_NAME_LENGTH: usize = 1;
pub const MAX_PLAYER_NAME_LENGTH: usize = 10;