Skip to content

Commit

Permalink
fix: reduce timeout timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tosox committed Jul 6, 2023
1 parent a3de4c3 commit cedba30
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/main/java/de/tosoxdev/tosoxjr/commands/hangman/Hangman.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Collectors;

enum GameState {
ONGOING("Hangman"),
WIN("You won!"),
DEFEAT("You lost!"),
TIMEOUT("Timeout");

private final String title;

GameState(String title) {
this.title = title;
}

public String getTitle() {
return title;
}
}

public class Hangman {
public static final HashMap<String, String> RANDOM_WORD_APIS = new HashMap<>(Map.of(
"en", "https://random-word-api.vercel.app/api?words=1",
Expand All @@ -46,7 +29,7 @@ public class Hangman {
private static final int REGIONAL_INDICATOR_Z_CP = 0x1F1FF;
private static final int JOKER_CP = 0x1F0CF;
private static final int STOP_SIGN_CP = 0x1F6D1;
private static final int TIMEOUT_MS = 2 * 60 * 1000;
private static final int TIMEOUT_MS = 60 * 1000;

private final Set<Character> guessedLetters = new HashSet<>();
private final MessageChannel channel;
Expand Down

0 comments on commit cedba30

Please sign in to comment.