-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,867,902 additions
and
45 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
CXX = g++ -std=c++11 | ||
LFLAGS = -m64 | ||
CXXFLAGS = -m64 -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) -Wno-sign-compare -Wno-unused-result-Wno-unused-variable-Wno-parameter -L /lib64 | ||
CXX = g++ -O3 -std=c++11 | ||
|
||
new_main : new_main.o player.o board.o | ||
$(CXX) $(LFLAGS) -o new_main new_main.o player.o board.o | ||
server_main: server_main.o player.o board.o | ||
$(CXX) -o server_main server_main.o player.o board.o | ||
|
||
new_main.o : new_main.cpp board.h player.h | ||
$(CXX) $(CXXFLAGS) -c new_main.cpp | ||
server_main.o: server_main.cpp board.h player.h | ||
$(CXX) -c server_main.cpp | ||
|
||
player.o : player.cpp player.h board.h | ||
$(CXX) $(CXXFLAGS) -c player.cpp | ||
player.o: player.cpp player.h board.h | ||
$(CXX) -c player.cpp | ||
|
||
board.o : board.cpp board.h | ||
$(CXX) $(CXXFLAGS) -c board.cpp | ||
board.o: board.cpp board.h | ||
$(CXX) -c board.cpp | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) new_main *.o *~ | ||
$(RM) server_main *.o *~ | ||
|
||
|
||
# new_main: new_main.o player.o board.o | ||
# $(CXX) -o new_main new_main.o player.o board.o | ||
|
||
# new_main.o: new_main.cpp board.h player.h | ||
# $(CXX) -c new_main.cpp | ||
|
||
# player.o: player.cpp player.h board.h | ||
# $(CXX) -c player.cpp | ||
|
||
# board.o: board.cpp board.h | ||
# $(CXX) -c board.cpp | ||
|
||
|
||
# .PHONY: clean | ||
# clean: | ||
# $(RM) new_main *.o *~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gnome-terminal --command="python server.py 10000 -n 5 -NC 2 -TL 150 -LOG server.log"& | ||
gnome-terminal --command="python client.py 0.0.0.0 10000 RandomPlayer.py -mode GUI"& | ||
gnome-terminal --command="python client.py 0.0.0.0 10000 RandomPlayer.py" | ||
gnome-terminal --command="python client.py 0.0.0.0 10000 run.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
-> You are player 2 | ||
-> You are alloted a time of 150s | ||
|
||
*********************************** | ||
|
||
Player 1 played : P 0 0 | ||
Time remaining is: 150s | ||
You played : P 1 0 | ||
Player 1 played : P 1 1 | ||
Time remaining is: 150s | ||
You played : P 1 2 | ||
Player 1 played : P 1 3 | ||
Time remaining is: 150s | ||
You played : P 1 4 | ||
Player 1 played : P 1 5 | ||
Time remaining is: 150s | ||
You played : P 2 0 | ||
Player 1 played : P 2 1 | ||
Time remaining is: 150s | ||
You played : P 2 2 | ||
Player 1 played : S 1 1 M 2 3 | ||
Time remaining is: 150s | ||
You played : S 1 0 M 2 11 | ||
Player 1 played : S 2 3 M 2 4 | ||
Time remaining is: 149s | ||
You played : S 2 11 M 3 17 | ||
Player 1 played : S 2 4 M 3 7 | ||
Time remaining is: 148s | ||
You played : S 3 17 M 4 23 | ||
Player 1 played : S 3 7 M 4 10 | ||
Time remaining is: 147s | ||
You played : S 4 23 M 5 29 | ||
Player 1 played : S 4 10 M 5 13 | ||
Time remaining is: 146s | ||
You played : S 1 2 M 3 6 | ||
Player 1 played : S 5 13 M 4 11 | ||
Time remaining is: 145s | ||
You played : S 5 29 M 4 0 | ||
Player 1 played : S 4 11 M 3 8 | ||
Time remaining is: 144s | ||
You played : S 4 0 M 3 0 | ||
Player 1 played : S 1 3 M 2 5 | ||
Time remaining is: 142s | ||
You played : S 3 0 M 3 1 | ||
Player 1 played : S 0 0 M 2 6 | ||
Time remaining is: 141s | ||
You played : S 3 6 M 3 5 | ||
Player 1 played : S 2 6 M 3 9 | ||
Time remaining is: 141s | ||
You played : S 3 1 M 4 1 | ||
Player 1 played : S 3 9 M 3 11 | ||
Time remaining is: 140s | ||
You played : S 4 1 M 5 1 | ||
Player 1 played : S 3 11 M 3 16 | ||
Time remaining is: 139s | ||
You played : S 5 1 M 5 2 | ||
Player 1 played : S 3 16 M 4 21 | ||
Time remaining is: 138s | ||
You played : S 5 2 M 4 2 | ||
Player 1 played : S 4 21 M 5 26 | ||
Time remaining is: 138s | ||
You played : S 4 2 M 3 2 | ||
Player 1 played : S 5 26 M 4 20 | ||
Time remaining is: 137s | ||
You played : S 3 2 M 3 3 | ||
Player 1 played : S 2 1 M 4 3 | ||
Time remaining is: 137s | ||
You played : S 3 3 M 3 4 | ||
Player 1 played : S 3 8 M 5 14 | ||
Time remaining is: 136s | ||
You played : S 3 4 M 4 6 | ||
Player 1 played : S 1 5 M 4 8 RS 5 13 RE 2 3 X 4 20 | ||
Time remaining is: 136s | ||
You played : S 2 0 M 4 22 RS 1 3 RE 3 0 X 4 6 RS 0 0 RE 4 0 X 4 6 | ||
INVALID MOVE ON THIS CLIENT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
letsgo | ||
P 1 0 | ||
P 1 1 | ||
P 1 2 | ||
P 1 3 | ||
P 1 4 | ||
P 1 5 | ||
P 2 0 | ||
P 2 1 | ||
P 2 2 | ||
S 1 1 M 2 3 | ||
S 1 0 M 2 11 | ||
S 2 3 M 2 4 | ||
S 2 11 M 3 17 | ||
S 2 4 M 3 7 | ||
S 3 17 M 4 23 | ||
S 3 7 M 4 10 | ||
S 4 23 M 5 29 | ||
S 4 10 M 5 13 | ||
S 1 2 M 3 6 | ||
S 5 13 M 4 11 | ||
S 5 29 M 4 0 | ||
S 4 11 M 3 8 | ||
S 4 0 M 3 0 | ||
S 1 3 M 2 5 | ||
S 3 0 M 3 1 | ||
S 0 0 M 2 6 | ||
S 3 6 M 3 5 | ||
S 2 6 M 3 9 | ||
S 3 1 M 4 1 | ||
S 3 9 M 3 11 | ||
S 4 1 M 5 1 | ||
S 3 11 M 3 16 | ||
S 5 1 M 5 2 | ||
S 3 16 M 4 21 | ||
S 5 2 M 4 2 | ||
S 4 21 M 5 26 | ||
S 4 2 M 3 2 | ||
S 5 26 M 4 20 | ||
S 3 2 M 3 3 | ||
S 2 1 M 4 3 | ||
S 3 3 M 3 4 | ||
S 3 8 M 5 14 | ||
S 3 4 M 4 6 | ||
S 1 5 M 4 8 RS 5 13 RE 2 3 X 4 20 | ||
S 2 0 M 4 22 RS 1 3 RE 3 0 X 4 6 | ||
3 | ||
move:S 3 3 M 3 4 | ||
S 3 8 M 5 14 | ||
move:S 3 4 M 4 6 | ||
S 1 5 M 4 8 RS 5 13 RE 2 3 X 4 20 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.