blob: f830811487b711ef9080333d13b961890f7c981a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package main
const keybindings = `General:
Esc: quit
Selection mode:
h: Left
j: Down
k: Up
l: Right
":" Command mode
Command mode:
Enter a coordinate
q: quit
`
const letters = "ABCDEFGHIJ"
/* Boats Info:
|------------+--------+----------------|
| BoatName | BoatID | HorizontalBoat |
| Carrier | 0 | ◁ ▭ ▭ ▭ ▷ |
| Battleship | 1 | ◁ ▭ ▭ ▷ |
| Destroyer | 2 | ▭ ▭ ▷ |
| Submarine | 3 | ◁ ▭ ▷ |
| PatrolBoat | 4 | ▭ ▷ |
|------------+--------+----------------|
*/
const boat0 = `Carrier:
◁ ▭ ▭ ▭ ▷ `
const boat1 = `Battleship:
◁ ▭ ▭ ▷ `
const boat2 = `Destroyer:
▭ ▭ ▷ `
const boat3 = `Submarine:
◁ ▭ ▷ `
const boat4 = `Patrol Boat:
▭ ▷ `
|