aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-11-06 19:54:43 +0000
committerzedarider <ymherklotz@gmail.com>2016-11-06 19:54:43 +0000
commit4428e477ae27e8634715610649b68919810dd684 (patch)
treed917dfa4a0be72daf697c695ab4ea02b2ce82505
parent4716585d5acb45b00960eebb4f8ae4580e580da0 (diff)
downloadChessAI-4428e477ae27e8634715610649b68919810dd684.tar.gz
ChessAI-4428e477ae27e8634715610649b68919810dd684.zip
fixed makefile
-rw-r--r--Makefile2
-rwxr-xr-xbin/chess_aibin234216 -> 235664 bytes
-rw-r--r--include/chess_ai.hpp2
3 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3c0f9e7..1612948 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ TARGET := bin/chess_ai
SRCEXT := cpp
SOURCES := $(shell find $(SRCDIR) -type f -name "*.$(SRCEXT)")
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o))
-CFLAGS := -g -Wall -Wextra
+CFLAGS := -g -Wall -Wextra -std=c++14
LIB :=
INC := -I include
diff --git a/bin/chess_ai b/bin/chess_ai
index a09b495..6950f5d 100755
--- a/bin/chess_ai
+++ b/bin/chess_ai
Binary files differ
diff --git a/include/chess_ai.hpp b/include/chess_ai.hpp
index c682bd2..c1496e3 100644
--- a/include/chess_ai.hpp
+++ b/include/chess_ai.hpp
@@ -141,7 +141,7 @@ namespace chess_ai {
// overloading operators
// so that we can make two copies of a point
- chess_piece& operator=(const chess_piece& piece) {
+ chess_piece& operator==(const chess_piece& piece) {
if(this != &piece) {
this->set(piece.type, piece.colour, piece.x, piece.y);
}