feat: added input (player_one and player_two now can place on board)
This commit is contained in:
+27
-1
@@ -1,6 +1,32 @@
|
||||
#ifndef ELEMENTS_HPP
|
||||
#define ELEMENTS_HPP
|
||||
|
||||
// Add code here
|
||||
struct Point {
|
||||
Point();
|
||||
Point(int row, int col) : m_row(row), m_col(col) {};
|
||||
int m_row;
|
||||
int m_col;
|
||||
void assign(int row, int col);
|
||||
void to_string();
|
||||
};
|
||||
|
||||
struct Player {
|
||||
Player(char symbol, bool turn) : m_symbol(symbol), m_turn(turn) {};
|
||||
char m_symbol;
|
||||
bool m_turn;
|
||||
};
|
||||
|
||||
struct Tile {
|
||||
Tile(int row, int col) : m_pos(row, col), m_symbol(' '), _delete(false) {};
|
||||
char m_symbol;
|
||||
Point m_pos;
|
||||
bool _delete;
|
||||
};
|
||||
|
||||
struct Border {
|
||||
Border(int row, int col, char symbol) : m_pos(row, col), m_symbol(symbol) {};
|
||||
char m_symbol;
|
||||
Point m_pos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user