FINISHED HUFFMAN FINALLLLLLYLYLLY

This commit is contained in:
Jacob Signorovitch
2025-01-13 13:56:01 -05:00
parent d9d937c77e
commit b6ec810bb9
3 changed files with 384 additions and 371 deletions

View File

@@ -386,6 +386,7 @@ class Game extends World {
}
public Game onKeyEvent(String key) {
if (this.guessesLeft <= 0) throw new Error("Done.");
if ("123456789".contains(key)) { // User has entered a number.
int choice = Integer.valueOf(key);
if (choice <= this.conf.options.len()) return this.addDot(