From 87142c0cb5f42d877327c357497a5be6f3c5dbd0 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 9 Apr 2023 00:37:54 +0200 Subject: Should work, lol --- src/structs.go | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/structs.go (limited to 'src/structs.go') diff --git a/src/structs.go b/src/structs.go deleted file mode 100644 index c0cddc2..0000000 --- a/src/structs.go +++ /dev/null @@ -1,49 +0,0 @@ -package main - -import "time" - -// 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 - - // AmountOfBots defines the amount of bots taking part in the tournament - AmountOfBots int - - // RandomOffsets defines the offset in memory where the bots should be placed - RandomOffsets []int - - // GameRoundTime defines the length of a gameround - GameRoundDuration time.Duration -} - -// 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 - - // 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 -} -- cgit 1.4.1