TurboSchach/Pawn.cpp

26 lines
505 B
C++
Raw Normal View History

//
// Created by hamac on 19.12.2024.
//
2024-12-19 13:23:57 +00:00
#include "Chesspiece.h"
#include "Pawn.h"
2024-12-19 13:23:57 +00:00
#include <iostream>
/* 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+)
//moves.
}
2024-12-19 13:23:57 +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) {}