Skip to content

Commit

Permalink
Made gameMap public in order to test it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan45RS committed May 2, 2024
1 parent 9ee2617 commit df3e3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/uta/cse3310/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class App extends WebSocketServer implements GameEventListener {
// Create an appendable map to store players
private Map<String, Player> playerMap = new HashMap<>();
// Create an appendable map to store games
private Map<String, Game> gameMap = new HashMap<>();
public Map<String, Game> gameMap = new HashMap<>();
// Create a map to store the connection and the username
private Map<WebSocket, String> connectionUserMap = new HashMap<>();

Expand Down Expand Up @@ -592,4 +592,4 @@ public static void main(String[] args) {
webSocketServer.start();
System.out.println("WebSocket Server started on port: " + wsPort);
}
}
}

0 comments on commit df3e3e9

Please sign in to comment.