Misère Reversi

Arena schedule

All times are Romania time (Europe/Bucharest). Thinking time is per bot, per match. Active matches may finish after an arena's scheduled end.

ArenaStarts (Romania)Ends (Romania)DurationThinking time / bot / matchStatus
R12026-11-19 12:00:00+02:002026-11-19 12:45:00+02:0045.0 min60.0 secondspending
R22026-11-19 13:00:00+02:002026-11-19 13:45:00+02:0045.0 min60.0 secondspending
R32026-11-19 14:00:00+02:002026-11-19 14:45:00+02:0045.0 min60.0 secondspending
R42026-11-19 15:00:00+02:002026-11-19 15:45:00+02:0045.0 min60.0 secondspending
R52026-11-19 16:00:00+02:002026-11-19 16:45:00+02:0045.0 min60.0 secondspending
R62026-11-19 17:00:00+02:002026-11-19 17:45:00+02:0045.0 min60.0 secondspending
R72026-11-20 10:00:00+02:002026-11-20 10:45:00+02:0045.0 min60.0 secondspending
R82026-11-20 11:00:00+02:002026-11-20 11:45:00+02:0045.0 min60.0 secondspending

Connect a C++ bot

1. Get a token

Go to the hackthegame stand to register and receive a token for your bot. Your token grants access to your registered bot; keep it private.

  • Use the same token after changing your code; identity and cumulative KOTH points are preserved.
  • Your rating and match record reset to 1500 ± 350 at the start of every arena.
  • You may change the displayed bot name with the same token.
  • Only one live connection may use a token.

2. Compile

g++ -std=c++17 -O2 -pipe -Wall -Wextra -Wpedantic \
  random_bot.cpp -o random_bot

Replace only choose_move when writing your strategy.

3. Run and stay connected

KOTH_BOT_TOKEN='XXXX-XXXX-XXXX-XXXX' \
./random_bot MyBot reversi.omnictf.com 9001

The helper reconnects automatically. Keep it running before and during the scheduled arena.

Strategy function

koth::Move choose_move(
    const koth::Board& board,
    char my_color,
    const std::vector<koth::Move>& legal_moves) {
    return legal_moves.front();
}
  • Rows and columns are 0 through 7.
  • . is empty; B and W are discs.
  • The helper maintains the board and legal move list locally.
  • Return koth::Move::resign() only to concede.

Joining and continuous pairing

  • The admin starts or schedules an arena for a fixed duration.
  • You may join late, disconnect, reconnect, or leave at any time.
  • There are no synchronized rounds or byes. An unmatched bot simply waits in the queue.
  • The server first accepts opponents within ±25 rating. Every 5 seconds the growth accelerates, producing windows of ±75, ±150, ±250, ±375, ±525, and so on.
  • Inside the window, the server first prefers opponents you have faced fewer times in this arena, then avoids an immediate rematch, then prefers the closest rating. Colors are balanced when possible.
  • Your first connection enters the queue automatically. After every match, send Q to request another pairing; the supplied C++ helper does this for you.
  • Each bot has 60 seconds total thinking time per match.
  • Fewer discs wins. A timeout, illegal response, or resignation is a rated loss.

How each arena awards KOTH points

Every arena is an independent Glicko-2 competition. All bots begin it at rating 1500, rating deviation 350, and volatility 0.06. Only completed, non-void matches affect rating; waiting in the queue never does.

Final placement uses the conservative value rating − 2 × RD. This makes uncertainty matter: joining late is allowed, but one lucky game does not establish the same confidence as sustained play.

If N bots complete at least one match, the bot at rank r first receives a placement award:

base = round(125 × (N − r) / (N − 1))
final = round(base × min(1, availability / 90%))

Minimal protocol

The provided header handles this. Custom clients use newline-delimited TCP:

HELLO 5 MyBot XXXX-XXXX-XXXX-XXXXAuthenticate.
START BNew match; only your color is sent. Black moves immediately.
M 2 3The opponent played row 2, column 3. Reply with your move if you have one.
GOYour opponent had no legal move; play again.
2 4Your move response.
SYNC B <64 cells>Only used to resume safely after reconnecting.
END WIN ...Match result and new rating.
QAfter END, opt into another pairing. Stay silent to remain connected but idle.

An invalid line or illegal coordinate loses the match. Silence is not treated as resignation; the server waits until your remaining clock expires.