Skip to content

Commit e1b4e63

Browse files
create content for bc26 (#960)
Co-authored-by: Lowell Torola <lowall2586@gmail.com>
1 parent ceb05c5 commit e1b4e63

File tree

4 files changed

+94
-4
lines changed

4 files changed

+94
-4
lines changed

backend/siarnaq/api/compete/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ def get_historical_rating(self, episode_id, teams):
458458
.select_related("match", "rating")
459459
.order_by("match__created")
460460
)
461-
logger.debug(f"match_participants query plan: {match_participants.query}")
461+
# logger.debug(f"match_participants query plan: {match_participants.query}")
462462

463-
logger.debug(f"match_participants count: {match_participants.count()}")
463+
# logger.debug(f"match_participants count: {match_participants.count()}")
464464
# Prepare rating history
465465
teams_rating_history = [
466466
[

frontend/src/content/ManageContent.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
PageKey,
88
} from "./ContentStruct";
99

10+
import * as BC26 from "./bc26";
1011
import * as BC25JAVA from "./bc25java";
1112
import * as BC25PYTHON from "./bc25python";
1213
import * as BC24 from "./bc24";
@@ -15,8 +16,14 @@ import * as BC22 from "./bc22";
1516

1617
const bcVersions: Record<
1718
string,
18-
typeof BC25JAVA | typeof BC25PYTHON | typeof BC24 | typeof BC23 | typeof BC22
19+
| typeof BC26
20+
| typeof BC25JAVA
21+
| typeof BC25PYTHON
22+
| typeof BC24
23+
| typeof BC23
24+
| typeof BC22
1925
> = {
26+
bc26: BC26,
2027
bc25java: BC25JAVA,
2128
bc25python: BC25PYTHON,
2229
bc24: BC24,

frontend/src/content/bc26.ts

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import type {
2+
QuickStartPageKey,
3+
ResourcesPageKey,
4+
DebuggingTipsPageKey,
5+
CommonIssuesPageKey,
6+
TourneyPageKey,
7+
} from "./ContentStruct";
8+
9+
export const QUICKSTART: Partial<Record<QuickStartPageKey, string>> = {
10+
Overview: `
11+
This is the Battlecode 2026 contest website, which will be your main hub for all Battlecode-related things for the duration of the contest. For a general overview of what Battlecode is, visit [our landing page](https://battlecode.org/).
12+
13+
*Deep beneath the abandoned dorms of MIT, thanks to a student letting their failed final project loose on campus, a robotic rat society has formed. Like all developing societies, there is, of course, conflict. It is not chromatic, but it is dangerous. You have heard tales of many large, hungry robot cats (someone else’s failed project, probably) that are on the prowl for sustenance. As such, your society and a nearby society have formed an uneasy alliance.*
14+
15+
*Before you begin dragging in enemy rats as sacrifices, you must remember the task you were born with: protect your mother, the big fat Rat King.*
16+
17+
`,
18+
"Account and Team Creation": `
19+
To participate in Battlecode, you need an account and a team. Each team can consist of 1 to 4 people.
20+
21+
[Create an account](/register) on this website, and then go to the [team section](/bc26/my_team) to either create or join a team.
22+
23+
If you need to rename your team for any reason, please reach out to Teh Devs on [Discord](https://discord.gg/N86mxkH) or at [battlecode@mit.edu](mailto:battlecode@mit.edu).
24+
25+
`,
26+
27+
"Installation and Setup": `
28+
Coming soon!
29+
`,
30+
};
31+
32+
export const RESOURCES: Partial<Record<ResourcesPageKey, string>> = {
33+
"Coding Resources": `
34+
35+
If you're just starting out, check out the [quick start](/bc26/quick_start) page!
36+
37+
For more helpful resources while coding, see:
38+
39+
- [Common Issues](/bc26/common_issues)
40+
- [Debugging Tips](/bc26/debugging_tips)
41+
42+
`,
43+
"Third-party Tools": `
44+
45+
The tools below were made by contestants! They haven't been tested by the devs, but might prove to be very helpful in developing your bot.
46+
47+
If you make a new tool that could be useful to others, please post it in the [#open-source channel](https://discord.gg/N86mxkH) on the Discord. Everyone will love you!!
48+
49+
- There is nothing here yet...
50+
51+
`,
52+
Lectures: `
53+
54+
Battlecode 2026 will be holding lectures, where a dev will be going over possible strategy, coding up an example player, answering questions, etc. You do not have to be an MIT student to view our lectures, and they are open to everyone! The lectures are beginner-friendly and are stongly recommended for both newcomers and past participants.
55+
56+
All lectures are streamed live on and later uploaded to [our YouTube page](https://www.youtube.com/@MITBattlecode).
57+
`,
58+
};
59+
60+
export const DEBUGGINGTIPS: Partial<Record<DebuggingTipsPageKey, string>> = {
61+
Debugging: `
62+
Coming soon!
63+
`,
64+
};
65+
66+
export const COMMONISSUES: Partial<Record<CommonIssuesPageKey, string>> = {
67+
"Installation Issues": `
68+
Coming soon!
69+
`,
70+
};
71+
72+
export const TOURNAMENTS: Partial<Record<TourneyPageKey, string>> = {
73+
"Tournament Schedule": `
74+
Battlecode 2026 will have several tournaments throughout the month! We stream and commentate all tournaments online.
75+
76+
The deadline to submit code for each non-final tournament is usually 7 pm EST *the day before* the tournament.
77+
78+
Please note that **all times on this page are in your current time zone**. Refer to the submission freeze countdown timer for the time remaining before the next submission freeze.
79+
80+
The tournament schedule will be released before the contest begins. Please check back later!
81+
`,
82+
Prizes: `Coming soon!`,
83+
};

frontend/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const DEFAULT_EPISODE = "bc25java";
1+
export const DEFAULT_EPISODE = "bc26";
22
export const FIELD_REQUIRED_ERROR_MSG = "This field is required.";

0 commit comments

Comments
 (0)