diff options
author | Emile <hanemile@protonmail.com> | 2020-02-22 16:56:04 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-22 16:56:04 +0100 |
commit | 190153620b24d868cb76483862628eac273b1d1c (patch) | |
tree | db3f9cdd2944120a4255fd67f4ec279612f4f09b | |
parent | b8e974fcbaf9f5264d59f001c2eed78c7dc6f5d1 (diff) |
more struct fields
-rw-r--r-- | src/structs.go | 8 |
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 } |