Skip to content

Commit

Permalink
fix: fix player display at init.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlejeune74 committed Jan 2, 2024
1 parent 368522d commit 2b20a41
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'boulder_rust'",
"cargo": {
"args": [
"build",
"--bin=boulder_rust",
"--package=boulder_rust"
],
"filter": {
"name": "boulder_rust",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'boulder_rust'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=boulder_rust",
"--package=boulder_rust"
],
"filter": {
"name": "boulder_rust",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion src/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Board {
impl fmt::Display for Board {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut output = String::new();
let players = self.list_players_by_state(player::Status::Dead, Some(false));
let players = self.list_players_by_state(player::Status::Dead, Some(true));
if !players.is_empty() {
output.push_str(&format!("{}\n", players.len()));
for player in players {
Expand Down

0 comments on commit 2b20a41

Please sign in to comment.