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.

chore: use the url in the ui

+8 -2
+4
internal/server/auth.go
··· 18 18 externalURL string 19 19 ) 20 20 21 + func GetServerURL() string { 22 + return externalURL 23 + } 24 + 21 25 func SetConfig(passcode, url string) { 22 26 adminPasscode = passcode 23 27 externalURL = url
+4 -2
internal/server/web.go
··· 581 581 <div class="info-card"> 582 582 <h3>📤 How to Submit</h3> 583 583 <p><strong>First time?</strong> Connect via SSH to create your account:</p> 584 - <p><code>ssh -p 2222 username@localhost</code></p> 584 + <p><code>ssh -p 2222 username@{{.ServerURL}}</code></p> 585 585 <p style="margin-top: 0.5rem; color: #94a3b8;">You'll be prompted for your name, bio, and link. Your SSH key will be registered.</p> 586 586 587 587 <p style="margin-top: 1rem;"><strong>Upload your AI:</strong></p> 588 - <p><code>scp -P 2222 memory_functions_yourname.cpp username@localhost:~/</code></p> 588 + <p><code>scp -P 2222 memory_functions_yourname.cpp username@{{.ServerURL}}:~/</code></p> 589 589 590 590 <p style="margin-top: 1rem; color: #94a3b8;"> 591 591 <a href="/users" style="color: #60a5fa;">View all players →</a> ··· 669 669 Matches []storage.MatchResult 670 670 TotalPlayers int 671 671 TotalGames int 672 + ServerURL string 672 673 }{ 673 674 Entries: entries, 674 675 Matches: matches, 675 676 TotalPlayers: len(entries), 676 677 TotalGames: calculateTotalGames(entries), 678 + ServerURL: GetServerURL(), 677 679 } 678 680 679 681 if err := tmpl.Execute(w, data); err != nil {