28 lines
500 B
C++
28 lines
500 B
C++
//
|
|
// Created by hamac on 19.12.2024.
|
|
//
|
|
|
|
#include "Chesspiece.h"
|
|
#include "Pawn.h"
|
|
#include <iostream>
|
|
|
|
/* methods */
|
|
std::vector<std::string> Pawn::calcAvaibleMoves() {
|
|
std::pair<int, int> pos = Chesspiece::getPosition();
|
|
std::vector<std::string> moves;
|
|
|
|
if (this->firstMove) {
|
|
|
|
//moves.
|
|
}
|
|
|
|
|
|
std::cout << "Hello World!\n" << std::endl;
|
|
return moves;
|
|
}
|
|
|
|
Pawn::Pawn(char color, std::pair<int, int> position): Chesspiece(color, 'P') {
|
|
setPosition(position);
|
|
setColor(color);
|
|
}
|