src/main/java/com/webcheckers/appl/GameCenter.java
/**
     * Adds a new game to the games list.
     */
Adds a new game to the games list.
Adds a new game to the games list .
public void addGame(Game game) {
        game.gameid = this.i;
        this.i++;
        String redPlayer = game.getRedPlayer().getName();
        String whitePlayer = game.getWhitePlayer().getName();
        Games.put(redPlayer + "," + whitePlayer, game);
        GameArrayList.add(game);
    }
public void addGame ( Game game ) { game . gameid = this . i ; this . i ++ ; String redPlayer = game . getRedPlayer ( ) . getName ( ) ; String whitePlayer = game . getWhitePlayer ( ) . getName ( ) ; Games . put ( redPlayer + "," + whitePlayer , game ) ; GameArrayList . add ( game ) ; }
Adds a new game to the games list.
Adds a new game to the games list .