-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
59 lines (35 loc) · 1.2 KB
/
README
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Cioban George-Adrian
Grupa : 314CC
Note: Make sure you have the NCurses library installed
$ apt install libncurses5-dev
=======================================
======= Tema 02 - Battleships ========
=======================================
*battleship.c
Most of the required windows are created and the terminal is set up
for the game (see comments for each option)
Used GAMESTATE variable to determine in which game stage the player is currently in
*draw.c
Used this implementation file to store all the draw functions for easier use
*color_pairs.c
Same as draw.c , grouped all the colors for easier usage
*main_menu.c
The player can pick from 3 options
New Game = Empty maps are generated and the player can pick whether to
generate his/her map randomly or place each ship by hand
Resume = Loads the last used player map
Exist = exits the game
*placement.c
Used to place ships randomly or manually , also places the ships for the
bot
CONTROLS
arrows = move the ship
space = change orientation
q = go to main main_menu
r = place ships randomly
*ships.c
Used to store the ship struct
*Gameplay
CONTROLS
arrows = move the select box
enter = shoot at the current box