20 lines
632 B
C#
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;
|
|
}
|
|
}
|
|
} |