a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: use the original include

+8 -10
+1 -1
battleship-engine/src/battle_light.cpp
··· 3 3 // Date: November 2025 4 4 // Purpose: Test smart battleship AI with benchmarking on non-Linux systems 5 5 6 - #include "battleship_light.h" 6 + #include "battleship.h" 7 7 #include "memory.h" 8 8 #include "memory_functions_klukas.h" 9 9 #include <iostream>
+1 -1
battleship-engine/src/battleship_light.cpp battleship-engine/src/battleship.cpp
··· 1 - #include "battleship_light.h" 1 + #include "battleship.h" 2 2 #include <sstream> 3 3 #include <cctype> 4 4 #include <vector>
battleship-engine/src/battleship_light.h battleship-engine/src/battleship.h
+1 -1
battleship-engine/src/tournament_battle.cpp
··· 1 1 // Tournament battle runner - runs matches between two AI implementations 2 2 // Outputs results in parseable format 3 3 4 - #include "battleship_light.h" 4 + #include "battleship.h" 5 5 #include "memory.h" 6 6 #include <iostream> 7 7 #include <cstdlib>
+5 -7
internal/runner/runner.go
··· 147 147 return err 148 148 } 149 149 150 - // Remove any #include "battleship.h" lines that conflict with battleship_light.h 151 - inputStr := string(input) 152 - inputStr = regexp.MustCompile(`(?m)^\s*#include\s+"battleship\.h"\s*$`).ReplaceAllString(inputStr, "") 153 - input = []byte(inputStr) 150 + // Students can now use #include "battleship.h" directly 151 + // No need to remove it 154 152 155 153 if err := os.WriteFile(dstPath, input, 0644); err != nil { 156 154 return err ··· 253 251 compileArgs = append(compileArgs, "-std=c++11", "-O3", 254 252 "-o", combinedBinary, 255 253 mainPath, 256 - filepath.Join(enginePath, "src", "battleship_light.cpp"), 254 + filepath.Join(enginePath, "src", "battleship.cpp"), 257 255 ) 258 256 259 257 if prefix1 == prefix2 { ··· 441 439 #define %s 442 440 443 441 #include "memory.h" 444 - #include "battleship_light.h" 442 + #include "battleship.h" 445 443 #include <string> 446 444 447 445 void initMemory%s(ComputerMemory &memory); ··· 453 451 } 454 452 455 453 func generateMatchMain(prefix1, prefix2, suffix1, suffix2 string) string { 456 - return fmt.Sprintf(`#include "battleship_light.h" 454 + return fmt.Sprintf(`#include "battleship.h" 457 455 #include "memory.h" 458 456 #include "memory_functions_%s.h" 459 457 #include "memory_functions_%s.h"