2024-12-19 13:18:50 +00:00
|
|
|
//
|
|
|
|
// Created by hamac on 19.12.2024.
|
|
|
|
//
|
2024-12-19 13:23:57 +00:00
|
|
|
|
2024-12-20 01:06:12 +00:00
|
|
|
#include "Chesspiece.h"
|
|
|
|
#include "Pawn.h"
|
2024-12-19 13:23:57 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2024-12-20 01:06:12 +00:00
|
|
|
/* methods */
|
|
|
|
std::vector<std::string> Pawn::calcAvaibleMoves() {
|
|
|
|
std::pair<int, int> pos = Chesspiece::getPosition();
|
|
|
|
std::vector<std::string> moves;
|
2024-12-19 13:23:57 +00:00
|
|
|
|
2024-12-20 10:19:33 +00:00
|
|
|
//current
|
2024-12-19 13:23:57 +00:00
|
|
|
|
2024-12-20 10:19:33 +00:00
|
|
|
if (this->firstMove) {
|
|
|
|
//vector[8] => MoveList(1-1;2-2+)
|
2024-12-20 01:06:12 +00:00
|
|
|
//moves.
|
|
|
|
}
|
2024-12-19 13:23:57 +00:00
|
|
|
|
|
|
|
|
2024-12-20 01:06:12 +00:00
|
|
|
std::cout << "Hello World!\n" << std::endl;
|
|
|
|
return moves;
|
|
|
|
}
|
2024-12-19 13:23:57 +00:00
|
|
|
|
2024-12-20 10:19:33 +00:00
|
|
|
Pawn::Pawn(char color, std::pair<int, int> position): Chesspiece(color, position) {}
|