feat: added translation, updated readme

This commit is contained in:
2025-11-21 16:53:11 +01:00
parent 19f0ccb126
commit ea431c9401
3 changed files with 90 additions and 0 deletions

11
main.ts
View File

@@ -12,6 +12,7 @@ import {
showGameResults,
showStats,
showReference,
showTranslator,
confirmAction,
} from "./ui.ts";
import { createGameSession, isGameComplete } from "./game.ts";
@@ -43,6 +44,9 @@ class MorseGame {
case "reference":
await this.showReference();
break;
case "translator":
await this.showTranslator();
break;
case "reset":
await this.resetStats();
break;
@@ -151,6 +155,13 @@ class MorseGame {
});
}
/**
* Show translator
*/
async showTranslator(): Promise<void> {
await showTranslator();
}
/**
* Reset statistics
*/