You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Game.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Pirates are the functional units of a team, that explore the map, collect resour
60
60
61
61
The primary action that a pirate can perform is to **move**, and to decide where to move it can investigate its surroundings and communicate with its team via signals.
62
62
63
-
Each ship occupies exactly one tile at any time, and any tile that has one or more ships from a team will have a boat displayed on it.
63
+
Each pirate occupies exactly one tile at any time, and any tile that has one or more pirates from a team will have a ship displayed on it.
Copy file name to clipboardExpand all lines: docs/Pirate.md
+15-9
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,12 @@ def ActPirate(pirate):
14
14
15
15
## Investigation
16
16
17
-
A pirate is able to investigate all 8 tiles surrounding it, by which it can find out what lies in those tiles.
17
+
A pirate is able to investigate the tile it is on, and all 8 tiles surrounding it, by which it can find out what lies in those tiles.
18
18
Tiles are referred to based on their direction with respect to the pirate.
19
19
20
20

21
21
22
-
-**`investigate_current_position()`** : This function is used to investigate the current location of the pirate.
22
+
-**`investigate_current()`** : This function is used to investigate the current location of the pirate.
23
23
24
24
-**`investigate_up()`** : This function is used to investigate the area above the current location of the pirate.
25
25
@@ -37,12 +37,18 @@ Tiles are referred to based on their direction with respect to the pirate.
37
37
38
38
-**`investigate_sw()`** : This function is used to investigate the area in the southwest direction of the current location of the pirate.
39
39
40
-
Each of the above functions returns one of the following strings, corresponding to the contents of the investigated tile:
40
+
Each of the above functions returns a tuple of two strings `(where, who)`, `where` representing the type of the tile, and `who` the presence of pirates:
41
+
42
+
`where` can take the following values:
41
43
-***'wall'*** if the tile is out of bounds
42
-
-***'friend'*** if a ship from the same team is on the tile
43
-
-***'enemy'*** if a ship from the other team is on the tile
44
44
-***'island1', 'island2' or 'island3'*** if the tile is a part of an island
45
-
-***'blank'*** in all other cases
45
+
-***'blank'*** in all other cases (<u>i.e.</u> the sea)
46
+
47
+
`who` can take the following values:
48
+
-***'friend'*** if only pirates from the same team are on the tile
49
+
-***'enemy'*** if only pirates from the other team are on the tile
50
+
-***'both'*** if pirates from both teams are on the tile
51
+
-***'blank'*** in all other cases (<u>i.e.</u> no pirates)
46
52
47
53
## Info
48
54
@@ -61,6 +67,9 @@ Returns the position of the pirate as a tuple `(x, y)`.
61
67
### `getDeployPoint()`
62
68
Returns the coordinates of the deploy point of the team as a tuple `(x, y)`.
63
69
70
+
### `getID()`
71
+
Returns a string that uniquely identifies a pirate from each team, corresponding to the order of its creation
72
+
64
73
### `getDimensionX()`
65
74
Returns the X dimension of the game.
66
75
@@ -69,9 +78,6 @@ Returns the Y dimension of the game.
0 commit comments