Wiki › Project

ochess

Project · app · 2025

ochess is an online two-player chess game that runs in the browser in real time. The whole server is a single Python file using FastAPI, WebSockets and the python-chess library.

How it works

  • Players create a game or join one from a simple web page.
  • Moves travel over a WebSocket connection, so both boards update instantly.
  • python-chess checks every move against the rules, so the server never has to implement chess itself.
  • FastAPI serves a small HTML and JavaScript front end directly, and Uvicorn runs the server.

See also

In the knowledge graph

ochess and the 10 things it is linked to. Open any dot for its page, or explore it in the full graph.

When
2023202420252026
Jul 2025 · 1 commits

As data

Everything on this page is read from triples in the knowledge graph. These are the 22 it states about ochess, and 4 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.

Download
@prefix id: <https://ask.chaipat.cc/id/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix cj: <https://ask.chaipat.cc/ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

id:OChess
    a cj:Project ;
    rdfs:label "ochess" ;
    cj:description "Real-time online multiplayer chess with FastAPI, WebSockets and python-chess." ;
    cj:context id:OpenSource ;
    cj:repository "https://github.com/AppleBoiy/ochess"^^xsd:anyURI ;
    cj:firstCommit "2025-07-21"^^xsd:date ;
    cj:lastCommit "2025-07-21"^^xsd:date ;
    cj:commitCount 1 ;
    cj:kind "app" ;
    cj:theme id:ThemeWeb ;
    cj:uses id:Python ,
            id:FastAPI ,
            id:WebSockets ,
            id:PythonChess ,
            id:JavaScript ;
    cj:tier 2 ;
    cj:runsOn id:Browser ;
    cj:about id:Chess ;
    cj:relatedTo id:MasterChess ;
    cj:article "https://ask.chaipat.cc/wiki/OChess"^^xsd:anyURI ;
    cj:activeIn id:Y2025 ;
    cj:activity _:b110 .