about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-22 16:02:48 +0100
committerEmile <hanemile@protonmail.com>2020-02-22 16:02:48 +0100
commitedea1ed7b790810558fa6acd697676b577e1f2a0 (patch)
tree91d4eac67f723f3f2d7a74ad6862c11e2c79d3da
parent40ebb15decf2f30a27505afe07f71793c1c4b297 (diff)
structs
-rw-r--r--src/structs.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/structs.go b/src/structs.go
new file mode 100644
index 0000000..b8d63a7
--- /dev/null
+++ b/src/structs.go
@@ -0,0 +1,30 @@
+package main
+
+// Config defines the meta config
+type Config struct {
+
+	// Arch defines the architecture the battle should run in
+	Arch string
+
+	// Bits defines the bitness
+	Bits int
+
+	// Memsize defines the arena size
+	Memsize int
+
+	// MaxProgSize defines the maximal bot size
+	MaxProgSize int
+
+	// Bots defines a list of bots to take part in the battle
+	Bots []Bot
+}
+
+// Bot defines a bot
+type Bot struct {
+
+	// Path defines the path to the source of the bot
+	Path string
+
+	// Source defines the source of the bot after being compiled with rasm2
+	Source string
+}