Initial version, load default FEN, displays for 5 seconds and closes
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "app_consts.hpp"
|
||||
#include "piece.hpp"
|
||||
|
||||
class Board
|
||||
{
|
||||
public:
|
||||
Board();
|
||||
Board(std::string board_fen);
|
||||
|
||||
void load_FEN(std::string board_fen);
|
||||
|
||||
void draw_board(SDL_Surface* dest_surface);
|
||||
|
||||
private:
|
||||
Piece game_board[BOARD_SIZE][BOARD_SIZE];
|
||||
Team active_color;
|
||||
bool able_to_castle[2][2];
|
||||
std::vector<int> en_passant;
|
||||
int half_turn_count, full_turn_count;
|
||||
};
|
||||
Reference in New Issue
Block a user