Chessengine.h 455 B

12345678910111213141516171819202122232425262728
  1. #ifndef _CHESSENGINE_H
  2. #define _CHESSENGINE_H
  3. #include "Player.h"
  4. #include "Figure.h"
  5. #include "Chessboard.h"
  6. #include <vector>
  7. class Chessengine
  8. {
  9. private:
  10. char turn;
  11. Player* player1;
  12. Player* player2;
  13. Player* player;
  14. Chessboard board;
  15. bool king_on_board(char color);
  16. public:
  17. Chessengine(Player* p1, Player* p2);
  18. void load(vector<Figure*> figures, char turn);
  19. void load_base();
  20. void start();
  21. };
  22. #endif