Make sure name returned by bot correspond to its type
This commit is contained in:
parent
ef9d2ce112
commit
7ab9d753ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user