Skip to content

Commit 8a2ec51

Browse files
committed
Add logos
1 parent d070fd4 commit 8a2ec51

12 files changed

Lines changed: 53 additions & 20 deletions

File tree

data/leaderboards.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Halite": [
2+
"halite": [
33
{
44
"rank": 1,
55
"model": "o3",
@@ -41,7 +41,7 @@
4141
"elo": 783.6
4242
}
4343
],
44-
"HuskyBench": [
44+
"poker": [
4545
{
4646
"rank": 1,
4747
"model": "GPT-5",
@@ -83,7 +83,7 @@
8383
"elo": 898.3
8484
}
8585
],
86-
"CoreWar": [
86+
"corewar": [
8787
{
8888
"rank": 1,
8989
"model": "Claude Sonnet 4.5",
@@ -125,7 +125,7 @@
125125
"elo": 926.9
126126
}
127127
],
128-
"RobotRumble": [
128+
"robotrumble": [
129129
{
130130
"rank": 1,
131131
"model": "Claude Sonnet 4.5",
@@ -167,7 +167,7 @@
167167
"elo": 1016.9
168168
}
169169
],
170-
"RoboCode": [
170+
"robocode": [
171171
{
172172
"rank": 1,
173173
"model": "GPT-5",
@@ -209,7 +209,7 @@
209209
"elo": 890.8
210210
}
211211
],
212-
"BattleSnake": [
212+
"battlesnake": [
213213
{
214214
"rank": 1,
215215
"model": "Claude Sonnet 4.5",

pages/arenas/robotrumble.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ description: Program swarms to overwhelm opponents
44
players: 2
55
language: JavaScript, Python
66

7-
---
8-
9-
<div style="text-align:center;">
10-
<img src="/static/images/arenas/robotrumble_gif.gif" style="width:50%;"/>
7+
<div style="display:flex;flex-direction:column;align-items:center;text-align:center;">
8+
<img src="/static/images/arenas/robotrumble_gif.gif" style="width:50%; display:block;" alt="RobotRumble preview"/>
9+
<p style="font-size:0.9em; margin-top:0.5em;width:50%;">Write logic that controls a swarm of robots to carry out coordinated attacks against an opposing swarm.</p>
1110
</div>

server.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626

2727
pages_insights = [p for p in pages if p.path.startswith('insights/')]
2828
pages_arenas = [p for p in pages if p.path.startswith('arenas/')]
29+
with open("data/leaderboards.json") as f:
30+
leaderboards = json.load(f)
2931

3032
# Routes
3133
@app.route('/')
3234
def index():
33-
with open('data/leaderboards.json') as leaderboards:
34-
return render_template('index.html', leaderboards=json.load(leaderboards))
35+
return render_template('index.html', leaderboard=leaderboards["ALL"])
3536

3637
@app.route('/<path:path>/')
3738
def page(path):
@@ -59,7 +60,11 @@ def arenas():
5960

6061
@app.route('/arenas/<path:path>/')
6162
def arena(path):
62-
return render_template('arena.html', page=pages.get_or_404('arenas/' + path))
63+
return render_template(
64+
'arena.html',
65+
page=pages.get_or_404('arenas/' + path),
66+
leaderboard=leaderboards.get(path, []),
67+
)
6368

6469
@app.errorhandler(404)
6570
def page_not_found(path):

static/images/orgs/anthropic.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/orgs/google.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/orgs/openai.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/orgs/qwen.png

18.4 KB
Loading

static/images/orgs/xai.svg

Lines changed: 6 additions & 0 deletions
Loading

templates/_leaderboard.html

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,27 @@
77
</tr>
88
</thead>
99
<tbody>
10-
{% for entry in leaderboards.ALL %}
10+
{% for entry in leaderboard %}
1111
<tr>
1212
<td>{{ entry.rank }}</td>
13-
<td>{{ entry.model }}</td>
13+
<td>
14+
{% set logos = {
15+
'GPT-5': '/static/images/orgs/openai.svg',
16+
'GPT-5 Mini': '/static/images/orgs/openai.svg',
17+
'o3': '/static/images/orgs/openai.svg',
18+
'Claude Sonnet 4.5': '/static/images/orgs/anthropic.svg',
19+
'Claude Sonnet 4': '/static/images/orgs/anthropic.svg',
20+
'Gemini 2.5 Pro': '/static/images/orgs/google.svg',
21+
'Grok Code Fast': '/static/images/orgs/xai.svg',
22+
'Qwen3 Coder': '/static/images/orgs/qwen.png',
23+
} %}
24+
<img
25+
src="{{ logos.get(entry.model, '/static/images/orgs/default.svg') }}"
26+
alt="{{ entry.model }} logo"
27+
style="height:1em; vertical-align:middle; margin-right:0.4em; display:inline-block; transform:translateY(-0.12em);"
28+
/>
29+
{{ entry.model }}
30+
</td>
1431
<td>{{ entry.elo }}</td>
1532
</tr>
1633
{% endfor %}

templates/arena.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
{% block content %}
44
<br>
55
<div style="text-align:center;">
6-
<h2>{{ page.title }}</h2>
7-
{{ page.description }}
6+
<h2 style="margin: 0 auto;">{{ page.title }}</h2>
87
</div>
98
<br>
109

11-
<div class="blog">
10+
<div style="width:75%; margin: 0 auto;">
11+
{% include "_leaderboard.html" %}
12+
</div>
13+
14+
<div>
1215
{{page.html|safe}}
1316
</div>
1417
{% endblock content %}

0 commit comments

Comments
 (0)