Spaces:
Sleeping
Sleeping
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Chess Rooms</title> | |
| <link rel="stylesheet" href="{{ base_path }}/static/style.css"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| pre { white-space: pre-wrap; } | |
| </style> | |
| <link rel="icon" href="data:,"> | |
| <meta property="og:title" content="Chess MCP" /> | |
| <meta property="og:description" content="Play chess against an AI via MCP" /> | |
| <meta property="og:image" content="/static/embed.png" /> | |
| <meta name="twitter:card" content="summary_large_image" /> | |
| <meta name="twitter:title" content="Chess MCP" /> | |
| <meta name="twitter:description" content="Play chess against an AI via MCP" /> | |
| <meta name="twitter:image" content="/static/embed.png" /> | |
| <meta name="robots" content="noai" /> | |
| <meta name="ai-access-control" content="none" /> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>Chess MCP Rooms</h1> | |
| <form method="post" action="{{ base_path }}/create_room"> | |
| <button type="submit">Create Room</button> | |
| </form> | |
| <h2>Join Room</h2> | |
| <form onsubmit="event.preventDefault(); location.href='{{ base_path }}/room/' + document.getElementById('rid').value;"> | |
| <input id="rid" placeholder="Enter room id" required /> | |
| <button type="submit">Join</button> | |
| </form> | |
| <h2>Active Rooms</h2> | |
| <ul> | |
| {% for rid, info in rooms.items() %} | |
| <li><a href="{{ base_path }}/room/{{ rid }}">{{ rid }}</a></li> | |
| {% else %} | |
| <li>No rooms yet. Create one!</li> | |
| {% endfor %} | |
| </ul> | |
| </div> | |
| </body> | |
| </html> | |