about summary refs log tree commit diff
path: root/src/main.go
diff options
context:
space:
mode:
authorEmile <git@emile.space>2023-04-09 00:37:54 +0200
committerEmile <git@emile.space>2023-04-09 00:37:54 +0200
commit87142c0cb5f42d877327c357497a5be6f3c5dbd0 (patch)
treee4b2094315dc16fe680ad0a15587bb0671dea636 /src/main.go
parent907f5bc763959c3cc2196329a600a8afedebac5a (diff)
Should work, lol
Diffstat (limited to 'src/main.go')
-rw-r--r--src/main.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main.go b/src/main.go
deleted file mode 100644
index d5e0107..0000000
--- a/src/main.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package main
-
-func main() {
-
-	// initialize the game by parsing the config, defining the bots, building the
-	// bots and generating random offsets where the bots should be placed in
-	// memory
-	config := parseConfig()
-	defineBots(&config)
-	buildBots(&config)
-	genRandomOffsets(&config)
-
-	// initialize the arena (allocate memory + initialize the ESIL VM & stack)
-	r2p := initArena(&config)
-
-	// place the bots in the arena
-	placeBots(r2p, &config)
-
-	// if an error occurs (interrupt, ioerror, trap, ...), the ESIL VM should set
-	// a flag that can be used to determine if a player has died
-	defineErrors(r2p)
-
-	// run the actual game
-	runGame(r2p, &config)
-
-	r2p.Close()
-}