34 lines
537 B
C
34 lines
537 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
#include "Board.h"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
string myToUpper(string input);
|
||
|
|
||
|
struct moves
|
||
|
{
|
||
|
int row;
|
||
|
char column;
|
||
|
string moveType;
|
||
|
|
||
|
moves(int linea, int columna, string m)
|
||
|
{
|
||
|
row = linea;
|
||
|
column = columna;
|
||
|
moveType = m;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
void displayPossibleMoves(vector<moves> input)
|
||
|
{
|
||
|
cout<<"\n\nList of possible Moves:"<<endl;
|
||
|
for (int i = 0; i < input.size(); ++i)
|
||
|
{
|
||
|
cout<<"possible move: "<<input[i].row<<" "<<input[i].column<<" "<<input[i].moveType<<endl;
|
||
|
}
|
||
|
}
|