diff --git a/src/module/lang.js b/src/module/lang.js new file mode 100644 index 0000000..119ed1d --- /dev/null +++ b/src/module/lang.js @@ -0,0 +1,16 @@ +import { GameState } from './util.js' + +/** + * Enum of all possible instructions. + * @type {object} + */ +const instructions = { + [GameState.ChoosingNumberOfShips]: 'Select the number of ships ', + [GameState.PlayerSetup]: 'Place your ships on the grid', + [GameState.PromptPlayerChange]: "It is your opponent's turn", + [GameState.PlayerTurn]: 'Select a cell to fire a missile', + [GameState.PlayerVictory]: 'You won!' + // and so on +} + +export { instructions } \ No newline at end of file