12345678910111213141516171819202122232425262728 |
- #ifndef _CHESSBOARD_H
- #define _CHESSBOARD_H
- #include <vector>
- #include "Figure.h"
- #include "Position.h"
- #include "Cell.h"
- #include <utility>
- #include <iostream>
- class Chessboard
- {
- private:
- Cell** board;
- vector<std::pair<Position, Position>> moves;
- vector<Position> get_possible_moves(Figure* fig);
- Cell get_cell(Position pos);
- public:
- Chessboard(vector<Figure*>);
- void create_move(Position pos1, Position pos2);
- friend std::ostream& operator <<(std::ostream& out, Chessboard& chess);
- };
- #endif
|