TurboSchach/Pawn.cpp
2024-12-20 11:19:33 +01:00

26 lines
505 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;
//current
if (this->firstMove) {
//vector[8] => MoveList(1-1;2-2+)
//moves.
}
std::cout << "Hello World!\n" << std::endl;
return moves;
}
Pawn::Pawn(char color, std::pair<int, int> position): Chesspiece(color, position) {}