feat(tournaments & demo mode): demo mode can be changed at runtime

This commit is contained in:
2025-12-31 16:10:32 -05:00
Unverified
parent fff0343559
commit cbff8c7c60
4 changed files with 64 additions and 22 deletions

View File

@@ -29,6 +29,7 @@ impl RoundRobin {
match_id,
*player1_addr,
*player2_addr,
false,
)));
let match_guard = new_match.read().await;
@@ -178,4 +179,8 @@ impl Tournament for RoundRobin {
fn is_completed(&self) -> bool {
self.is_completed
}
fn get_type(&self) -> String {
"RoundRobin".to_string()
}
}