import './style.css'; import { GameEngine } from './game/GameEngine'; import { GameUI } from './ui/GameUI'; window.addEventListener('DOMContentLoaded', () => { const canvas = document.getElementById('game-canvas') as HTMLCanvasElement; if (!canvas) throw new Error('Canvas bulunamadı!'); const engine = new GameEngine(canvas, { tables: [2, 3, 4, 5], mode: 'classic', difficulty: 'normal' }); // UI Katmanını Başlat new GameUI(engine); });