about summary refs log tree commit diff
path: root/src/structs.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-22 16:56:04 +0100
committerEmile <hanemile@protonmail.com>2020-02-22 16:56:04 +0100
commit190153620b24d868cb76483862628eac273b1d1c (patch)
treedb3f9cdd2944120a4255fd67f4ec279612f4f09b /src/structs.go
parentb8e974fcbaf9f5264d59f001c2eed78c7dc6f5d1 (diff)
more struct fields
Diffstat (limited to 'src/structs.go')
-rw-r--r--src/structs.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/structs.go b/src/structs.go
index b8d63a7..d0a683c 100644
--- a/src/structs.go
+++ b/src/structs.go
@@ -27,4 +27,12 @@ type Bot struct {
 
 	// Source defines the source of the bot after being compiled with rasm2
 	Source string
+
+	// Addr defines the initial address the bot is placed at
+	Addr int
+
+	// Regs defines the state of the registers of the bot
+	// It is used to store the registers after each round and restore them in the
+	// next round when the bot's turn has come
+	Regs string
 }