summaryrefslogtreecommitdiff
path: root/src/moves.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-08-05 15:14:23 +1000
committerJed Barber <jjbarber@y7mail.com>2017-08-05 15:14:23 +1000
commite63ddbaa05da3aa302a330a71f45f49d0343691d (patch)
tree170ed923296634207d95de96ec033d6ae752163d /src/moves.adb
parent2950872300a419344b39b9174f4b371a240272c6 (diff)
All keyboard controls now working except undo
Diffstat (limited to 'src/moves.adb')
-rw-r--r--src/moves.adb44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/moves.adb b/src/moves.adb
new file mode 100644
index 0000000..e9bffc1
--- /dev/null
+++ b/src/moves.adb
@@ -0,0 +1,44 @@
+
+
+package body Moves is
+
+
+ procedure Add
+ (This : in out Path;
+ Item : in Move) is
+ begin
+ This.Append (Item);
+ end Add;
+
+
+
+
+ procedure Add
+ (This : in out Path;
+ List : in Path) is
+ begin
+ This.Append (List);
+ end Add;
+
+
+
+
+ function Latest
+ (This : in Path)
+ return Move is
+ begin
+ return This.Last_Element;
+ end Latest;
+
+
+
+
+ procedure Drop_Latest
+ (This : in out Path) is
+ begin
+ This.Delete_Last;
+ end Drop_Latest;
+
+
+end Moves;
+