summaryrefslogtreecommitdiff
path: root/PlayerMove.cs
diff options
context:
space:
mode:
Diffstat (limited to 'PlayerMove.cs')
-rw-r--r--PlayerMove.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/PlayerMove.cs b/PlayerMove.cs
new file mode 100644
index 0000000..7c8c67d
--- /dev/null
+++ b/PlayerMove.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Chess
+{
+ public class PlayerMove
+ {
+ public Player Player { get; }
+ public BoardTile From { get; }
+ public BoardTile To { get; }
+
+ public PlayerMove(Player player, BoardTile from, BoardTile to)
+ {
+ Player = player;
+ From = from;
+ To = to;
+ }
+
+ public override string ToString()
+ {
+ return From.ToString() + " -> " + To.ToString();
+ }
+ }
+}