Files
abdelaziz bc4118704e logic
2026-03-30 07:49:37 +02:00

20 lines
632 B
C#

namespace CheckersSpielBot
{
public class Move
{
public int DestinationRow { get; }
public int DestinationCol { get; }
public int CapturedPieceRow { get; }
public int CapturedPieceCol { get; }
public bool IsCapture => CapturedPieceRow >= 0;
public Move(int destinationRow, int destinationCol,
int capturedPieceRow, int capturedPieceCol)
{
DestinationRow = destinationRow;
DestinationCol = destinationCol;
CapturedPieceRow = capturedPieceRow;
CapturedPieceCol = capturedPieceCol;
}
}
}