-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmake_test_output.txt
56 lines (56 loc) · 2.45 KB
/
make_test_output.txt
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
./battleship_server &
./battleship_client -i LUKS -j -x 3 -y 9
./battleship_client -i JOHN -j -x 6 -y 10
./battleship_client -i LUKS -b -x 3 -y 1
./battleship_client -i JOHN -b -x 4 -y 9
./battleship_client -i MARK -j -x 4 -y 3
./battleship_client -i MARK -b -x 5 -y 10
./battleship_client -i LUKS -b -x 4 -y 1
./battleship_client -i MARK -b -x 2 -y 9
./battleship_client -i JOHN -b -x 3 -y 9
./battleship_client -i MARK -b -x 6 -y 1
./battleship_client -i JOHN -b -x 4 -y 3
killall -s SIGINT battleship_server 2>/dev/null || true
listening on ./srv_socket
cat ./battleship_server.log
Sun Feb 14 08:54:37 2021
: => Began listening on ./srv_socket for incoming client connections.
Sun Feb 14 08:54:37 2021
: => LUKS joined the game. His ship is located at x = 3 and y = 9.
Sun Feb 14 08:54:37 2021
: => JOHN joined the game. His ship is located at x = 6 and y = 0.
Sun Feb 14 08:54:37 2021
: => The game now has reached the two player minimum. Its status is now active.
Sun Feb 14 08:54:37 2021
: => It's LUKS's turn and he bombed JOHN with values x = 3 and y = 1.
Sun Feb 14 08:54:37 2021
: => LUKS missed JOHN. It's now JOHN's turn.
Sun Feb 14 08:54:37 2021
: => It's JOHN's turn and he bombed LUKS with values x = 4 and y = 9.
Sun Feb 14 08:54:37 2021
: => JOHN missed LUKS. It's now LUKS's turn.
Sun Feb 14 08:54:38 2021
: => MARK joined the game. His ship is located at x = 4 and y = 3.
Sun Feb 14 08:54:38 2021
:=> MARK attempted to take a turn, but it is not his turn.
Sun Feb 14 08:54:38 2021
: => It's LUKS's turn and he bombed MARK with values x = 4 and y = 1.
Sun Feb 14 08:54:38 2021
: => LUKS missed MARK. It's now MARK's turn.
Sun Feb 14 08:54:38 2021
: => It's MARK's turn and he bombed JOHN with values x = 2 and y = 9.
Sun Feb 14 08:54:38 2021
: => MARK missed JOHN. It's now JOHN's turn.
Sun Feb 14 08:54:38 2021
: => It's JOHN's turn and he bombed LUKS with values x = 3 and y = 9.
Sun Feb 14 08:54:38 2021
: => JOHN hit LUKS's ship! LUKS is now out of the game. JOHN is now firing at MARK, and it is now MARK's turn.
Sun Feb 14 08:54:38 2021
: => It's MARK's turn and he bombed JOHN with values x = 6 and y = 1.
Sun Feb 14 08:54:38 2021
: => MARK missed JOHN. It's now JOHN's turn.
Sun Feb 14 08:54:38 2021
: => It's JOHN's turn and he bombed MARK with values x = 4 and y = 3.
Sun Feb 14 08:54:38 2021
: => JOHN hit MARK's ship! JOHN wins the game as he is the only remaining survivor! Waiting for more challengers...
SIGINT signal encountered, exiting gracefully...