Finished version, might have memory leaks

This commit is contained in:
2022-04-15 23:13:15 -04:00
parent e6e567e734
commit cbdf377c86
9 changed files with 703 additions and 41 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include <SDL2/SDL.h>
#include "SDL2/SDL.h"
#include "board.hpp"
@@ -15,10 +15,18 @@ private:
void tick();
void draw();
void process_click(int x, int y);
void do_ai_move();
int minimax(Board current_board, int depth, int a, int b, bool maximizing);
int board_heuristic(Board current_board);
SDL_Window* window;
SDL_Surface* surface;
Board board;
bool running;
bool holding_k;
};