Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
muktar1907 committed May 2, 2024
1 parent 63e943b commit 083179a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/uta/cse3310/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import java.util.Iterator;
import java.util.Scanner;
import java.util.UUID;

import java.util.Set;
import java.util.HashSet;
public class Game // implements Chat, Timer, GridField, LeaderBoard, Wordlist
{
private int gameMode;
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/uta/cse3310/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Player
private PlayerStatus status; // Using enum for clearer status management
private int totalPoints;
private int gameWins; // Renamed for clarity

private String color;
public enum PlayerStatus
{
ACTIVE, INACTIVE, DISCONNECTED
Expand Down Expand Up @@ -103,4 +103,9 @@ public String toString()
", gameWins=" + gameWins +
'}';
}

public String getColor()
{
return color;
}
}

0 comments on commit 083179a

Please sign in to comment.