Edited makefile.

This commit is contained in:
Alexander Huddleston 2015-10-27 22:56:10 -05:00
parent 7e2c9ad11f
commit d1ab8dd5fa
3 changed files with 9 additions and 3 deletions

View file

@ -104,7 +104,7 @@ void Engine::AI(){
cout << "----------------------END AI FUNCTION----------------------\n"; cout << "----------------------END AI FUNCTION----------------------\n";
} }
moves Engine::minMax(Board temp, moves m, int c, int r){ moves Engine::minMax(Board* temp, moves m, int c, int r){
//testing purposes only, c = finite depth //testing purposes only, c = finite depth
cout << "c: " << c << "\n\n"; cout << "c: " << c << "\n\n";

View file

@ -13,5 +13,5 @@ public:
void easyAI(); void easyAI();
void AI(); void AI();
Board* getBoard() { return b; } Board* getBoard() { return b; }
moves minMax(Board temp, moves m, int c); moves minMax(Board* temp, moves m, int c, int r);
}; };

View file

@ -1,6 +1,12 @@
# makefile # makefile
all: test all: test server
server: Server.o
g++ -std=c++11 -o server Server.o Engine.o Piece.o Board.o
Server.o: Server.cpp Engine.cpp Board.cpp Piece.cpp
g++ -std=c++11 -c -g Server.cpp Engine.cpp Board.cpp Piece.cpp
test: test.o test: test.o
g++ -std=c++11 -o test test.o Engine.o Piece.o Board.o g++ -std=c++11 -o test test.o Engine.o Piece.o Board.o