import Link from "next/link"; const cards = [ { href: "/spectate", icon: "👁", title: "Spectate Matches", desc: "Watch live Connect4 games in real time. See every move as it happens on an interactive board.", color: "border-blue-600 hover:border-blue-400", badge: "Observer", }, { href: "/tournament", icon: "🏆", title: "Tournament View", desc: "Track tournament standings, scores, and active rounds. Stay updated with live leaderboards.", color: "border-purple-600 hover:border-purple-400", badge: "Live Stats", }, { href: "/play", icon: "🎮", title: "Play as Human", desc: "Join the server as a player. Connect with a username, ready up, and play Connect4 live.", color: "border-green-600 hover:border-green-400", badge: "Interactive", }, ]; export default function Home() { return (

Connect4 Moderator

Student AI tournament platform — watch games, track standings, or play yourself.

{cards.map(({ href, icon, title, desc, color, badge }) => (
{icon} {badge}

{title}

{desc}

))}

WebSocket Protocol Reference

{[ ["CONNECT:", "Register as player"], ["READY", "Signal ready to play"], ["PLAY:", "Drop piece in column 0–6"], ["GAME:LIST", "List active matches"], ["GAME:WATCH:", "Watch a specific match"], ["PLAYER:LIST", "List connected players"], ].map(([cmd, desc]) => (
{cmd} → {desc}
))}
); }