Edited makefile.
This commit is contained in:
parent
7e2c9ad11f
commit
d1ab8dd5fa
3 changed files with 9 additions and 3 deletions
|
@ -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";
|
||||||
|
|
2
Engine.h
2
Engine.h
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
8
makefile
8
makefile
|
@ -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
|
||||||
|
|
Reference in a new issue