logic
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user