Add the ability to respawn and improve controller port mapping (#72)
CI / build-and-test (push) Successful in 2m2s
CI / production-build (push) Successful in 12m18s

Reviewed-on: #72
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #72.
This commit is contained in:
2026-09-27 11:54:08 +00:00
committed by EIREXE
parent bb238d2cbc
commit 6f1d8a7706
15 changed files with 438 additions and 85 deletions
+3 -6
View File
@@ -40,12 +40,7 @@ impl MatchState {
Self {
elapsed_frames: 0,
players: (0..config
.players
.iter()
.map(|player| player.handle)
.max()
.map_or(0, |handle| handle + 1))
players: (0..config.players.len())
.map(|_| PlayerMatchState {
stocks_remaining,
score: 0,
@@ -122,10 +117,12 @@ mod tests {
players: vec![
MatchPlayer {
handle: 1,
controller_port: 3,
fighter: FighterId::TestFighter,
},
MatchPlayer {
handle: 0,
controller_port: 0,
fighter: FighterId::TestFighter,
},
],