5#ifndef MAINPROJECT_PIECE_H
6#define MAINPROJECT_PIECE_H
8#include <SFML/Graphics.hpp>
37 void Draw(sf::RenderWindow& window);
Represents the game board and its functionality.
Definition board.h:21
Represents a checker piece on the board.
Definition piece.h:15
bool isAlive
Definition piece.h:42
sf::Color color
Color of the piece (Red or Black).
Definition piece.h:54
int x
x-coordinate of the piece on the board.
Definition piece.h:46
int y
y-coordinate of the piece on the board.
Definition piece.h:50
bool isKing
Indicates if the piece is a king (can move backwards).
Definition piece.h:41
void Draw(sf::RenderWindow &window)
Renders the checker piece on the screen.
Definition piece.cpp:17
Piece()
Default constructor for the Piece class.
Definition piece.cpp:16