Commit e678b817 authored by Tyler Ehgoetz's avatar Tyler Ehgoetz
Browse files

final changes

parent c034cc7c
......@@ -106,7 +106,6 @@ inline int levelFourEvaluate(int depth, int alpha, int beta, Position p) {
for (auto m : moves) {
p.makeMove(m);
std::cout << m << std::endl;
int evaluation = levelFourEvaluate(depth - 1, -beta, -alpha, p);
p.undoLastMove();
// Move was too good and the opponent will avoid this position
......
......@@ -54,7 +54,7 @@ void BoardGUI::notify() {
drawBox(squareX, squareY, w.Black, w);
}
if (prev[s] != p && prev[s] != ' ') {
w.fillRectangle(pieceX, (pieceY - PIXEL_SIZE), PIXEL_SIZE, PIXEL_SIZE, w.White);
w.fillRectangle(pieceX, (pieceY - PIXEL_SIZE), PIXEL_SIZE+2, PIXEL_SIZE+2, w.White);
}
if (p != ' ') {
w.drawString(pieceX, pieceY, std::string(1,p));
......
No preview for this file type
File added
File added
File added
......@@ -19,7 +19,7 @@ int main() {
unique_ptr<Game> game = make_unique<Game>();
vector<unique_ptr<Observer>> obs;
obs.emplace_back(make_unique<TextDisplay>(game.get()));
// obs.emplace_back(make_unique<BoardGUI>(game.get()));
obs.emplace_back(make_unique<BoardGUI>(game.get()));
string command;
bool setup = false;
double score1 = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment