Make sure name returned by bot correspond to its type

This commit is contained in:
Pierre HUBERT 2022-09-24 12:31:07 +02:00
parent ef9d2ce112
commit 7ab9d753ed

View File

@ -23,7 +23,12 @@ impl BotPlayer {
impl Player for BotPlayer {
fn get_name(&self) -> &str {
"Intermediate Bot"
match self.kind {
BotType::Random => "Random bot",
BotType::Linear => "Linear bot",
BotType::Intermediate => "Intermediate bot",
BotType::Smart => "Smart bot",
}
}
fn get_uid(&self) -> Uuid {