Skip to content

Commit

Permalink
Attempt to fix deployment by commenting out some code
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-tieu committed Aug 7, 2024
1 parent df0d735 commit bfaddf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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 @@ -128,7 +128,7 @@ else if(L.getGameStatus() == false) {
L.players.add(newPlayer);
L.setPlayerCount();
}
else {
/*else {
L = new Lobby(lobbyId);
lobbyId++;
// Add the first player
Expand All @@ -139,7 +139,7 @@ else if(L.getGameStatus() == false) {
L.setPlayerCount();
ActiveLobbies.add(L);
System.out.println("MAX AMOUNT OF PLAYERS, CREATING A NEW LOBBY");
}
}*/

// allows the websocket to give us the Lobby when a message arrives..
// it stores a pointer to L, and will give that pointer back to us
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/uta/cse3310/Gameplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class Gameplay {
public List<Player> players;
public int currentPlayerIndex;
public Wheel wheel;
public Random random;
public Scanner scanner;
//public Random random;
//public Scanner scanner;
public Round round;
public int roundNum;
public UserEvent userEvent;
Expand All @@ -19,8 +19,8 @@ public Gameplay(List<Player> players) {
this.players = players;
this.currentPlayerIndex = 0;
this.wheel = new Wheel();
this.random = new Random();
this.scanner = new Scanner(System.in);
//this.random = new Random();
//this.scanner = new Scanner(System.in);
this.roundNum = 1;
this.userEvent = new UserEvent();
}
Expand Down Expand Up @@ -78,7 +78,7 @@ private void playRound() {

// Prompt player to guess a letter or solve the puzzle
System.out.print("Guess a letter or solve the puzzle (g for guess, s for solve): ");
String choice = scanner.nextLine();
/*String choice = scanner.nextLine();
if (choice.equals("g")) {
System.out.print("Enter a letter: ");
Expand All @@ -103,11 +103,11 @@ private void playRound() {
System.out.println("Wrong solution.");
currentPlayerIndex = (currentPlayerIndex + 1) % players.size(); // Next player's turn
}
}
}*/
}
}

private boolean checkGuess(char guessedLetter) {
/*private boolean checkGuess(char guessedLetter) {
// Implement the logic to check the guessed letter
// Return true if the guess is correct, false otherwise
return random.nextBoolean(); // Placeholder logic
Expand All @@ -117,7 +117,7 @@ private boolean checkSolution(String solution) {
// Implement the logic to check the solution
// Return true if the solution is correct, false otherwise
return random.nextBoolean(); // Placeholder logic
}
}*/

private Player determineWinner() {
Player winner = players.get(0);
Expand Down

0 comments on commit bfaddf3

Please sign in to comment.