From edea1ed7b790810558fa6acd697676b577e1f2a0 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 22 Feb 2020 16:02:48 +0100 Subject: structs --- src/structs.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/structs.go 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 +} -- cgit 1.4.1