aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/delta.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-20 01:23:39 +0200
committerJulien Dessaux2021-09-20 10:33:10 +0200
commit46170dd5b70588c9b1c6f4aa5aaea2649d8c74f0 (patch)
tree1e4ac74fc7e3ec44b22d50ceb9564e336cc3d89f /pkg/pointer/delta.go
parentRefactoring (diff)
downloadgofunge98-46170dd5b70588c9b1c6f4aa5aaea2649d8c74f0.tar.gz
gofunge98-46170dd5b70588c9b1c6f4aa5aaea2649d8c74f0.tar.bz2
gofunge98-46170dd5b70588c9b1c6f4aa5aaea2649d8c74f0.zip
Began implementing the Instruction Pointer
Diffstat (limited to 'pkg/pointer/delta.go')
-rw-r--r--pkg/pointer/delta.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/pointer/delta.go b/pkg/pointer/delta.go
new file mode 100644
index 0000000..0c3e074
--- /dev/null
+++ b/pkg/pointer/delta.go
@@ -0,0 +1,10 @@
+package pointer
+
+type Delta struct {
+ x int
+ y int
+}
+
+func NewDelta(x, y int) *Delta {
+ return &Delta{x: x, y: y}
+}