fix: change to 7x6 boards, terminate games on error, example_client.py keep alive

This commit is contained in:
2025-11-20 16:10:57 -05:00
Unverified
parent 348e8ae786
commit 3669a54eea
4 changed files with 67 additions and 55 deletions

View File

@@ -61,7 +61,7 @@ impl Match {
// TODO: make player1 in Match always first
Match {
id,
board: vec![vec![Color::None; 5]; 6],
board: vec![vec![Color::None; 6]; 7],
viewers: Vec::new(),
ledger: Vec::new(),
first,
@@ -71,7 +71,7 @@ impl Match {
}
pub fn place_token(&mut self, color: Color, column: usize) {
for i in 0..5 {
for i in 0..6 {
if self.board[column][i] == Color::None {
self.board[column][i] = color;
break;