<?php
// Load the engine without its Supabase dependency (already stubbed by the caller).
$root = dirname(__DIR__);
require_once $root . '/includes/chess.php';
$src = file_get_contents($root . '/includes/tournament-engine.php');
$src = preg_replace("#require_once __DIR__ . '/supabase.php';#", '', $src);
$src = preg_replace("#require_once __DIR__ . '/chess.php';#", '', $src);
$src = preg_replace('/^<\?php/', '', $src, 1);
eval($src);
