about summary refs log tree commit diff
path: root/src/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/structs.go')
-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
+}