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

fix: use exact function suffix case from student code

dunkirk.sh 2361beb2 176b376f

verified
Changed files
+2 -2
internal
runner
remote-submissions
+1 -2
internal/runner/runner.go
···
func generateHeader(filename, prefix string) string {
guard := strings.ToUpper(strings.Replace(filename, ".", "_", -1))
-
functionSuffix := strings.ToUpper(prefix[0:1]) + prefix[1:]
return fmt.Sprintf(`#ifndef %s
#define %s
···
void updateMemory%s(int row, int col, int result, ComputerMemory &memory);
#endif
-
`, guard, guard, functionSuffix, functionSuffix, functionSuffix)
+
`, guard, guard, prefix, prefix, prefix)
}
func generateMatchMain(prefix1, prefix2, suffix1, suffix2 string) string {
+1
remote-submissions/klukas/memory_functions_klukas.cpp
···
+
#include "battleship.h"
#include "memory_functions_klukas.h"
#include "kasbs.h"
#include "memory.h"