-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.pl
37 lines (27 loc) · 899 Bytes
/
variables.pl
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
% -----------------------------------------------
% Interface variables
% -----------------------------------------------
% Determines the language of the text.
dynamic(language/1).
% -----------------------------------------------
% Board variables
% -----------------------------------------------
% Determines the number of lines in the game
dynamic(numberOfLines/1).
% Determines the number of columns in the game
dynamic(numberOfCols/1).
% Size of padding on the board
padding_size(1).
% -----------------------------------------------
% Player variables
% -----------------------------------------------
% horizontal and vertical players
vertical_player(1).
horizontal_player(2).
% empty cell code
code(0,' ') :- !.
% player codes
code(1,'\x00445\') :- !.
code(2,'\x25CF\') :- !.
% if the cell does not have a piece of any player and is not empty prints the value itself
code(X, X).