Skip to content

Commit

Permalink
add players list
Browse files Browse the repository at this point in the history
  • Loading branch information
Janin-Michel-Mathias committed Apr 28, 2023
1 parent 94b1a6c commit d43b76c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ func gameCommands(resp []string, boats [] boat){
if(len(resp) == 2 ){
askForGameSet(resp[1]);
}
case "/players":
if(len(resp) == 1){
for username, _ := range(players) {
fmt.Println(username);
}
}
}
}
}
Expand Down

0 comments on commit d43b76c

Please sign in to comment.