chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

chess.html (5668B)


      1 <!doctype html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8">
      5 <meta name="viewport" content="width=device-width, initial-scale=1">
      6 <title>Play chess - Chamesle</title>
      7 <meta name="description" content="Play chess against Stockfish, right here in your browser. Five levels, from beginner to the full engine.">
      8 <link rel="canonical" href="https://chamesle.org/chess.html">
      9 <meta property="og:type" content="website">
     10 <meta property="og:site_name" content="Chamesle">
     11 <meta property="og:title" content="Play chess - Chamesle">
     12 <meta property="og:description" content="Play chess against Stockfish, right here in your browser. Five levels, from beginner to the full engine.">
     13 <meta property="og:url" content="https://chamesle.org/chess.html">
     14 <link rel="stylesheet" href="style.css?25">
     15 <link rel="icon" href="img/logo.png">
     16 </head>
     17 <body>
     18 
     19 <div id="page">
     20 
     21 <div id="top">
     22 <h1><a href="./"><img src="img/banner.png" alt="Chamesle Linux" width="223" height="56"></a></h1>
     23 </div>
     24 
     25 <div id="nav">
     26 <a href="./">Home</a> |
     27 <a href="download.html">Download</a> |
     28 <a href="docs.html">Handbook</a> |
     29 <a href="packages.html">Packages</a> |
     30 <a href="new.html">News</a> |
     31 <a href="board.html">Board</a> |
     32 <a href="chat.html">Chat</a> |
     33 <a href="source.html">Source</a> |
     34 <a href="https://x22.chamesle.org/">X22</a> |
     35 <a href="https://github.com/tortr-rs/mag">mag</a> |
     36 <a href="about.html">About</a>
     37 </div>
     38 
     39 <main>
     40 <h2>Play chess</h2>
     41 <p><i>You against Stockfish, the strongest chess program there is. It runs in your browser, on your computer, so nothing about your game leaves it.</i></p>
     42 
     43 <form class="chessbar" onsubmit="return false">
     44 <label>Level
     45 <select id="level">
     46   <option value="0">1, just learning</option>
     47   <option value="1" selected>2, casual</option>
     48   <option value="2">3, club player</option>
     49   <option value="3">4, strong</option>
     50   <option value="4">5, full Stockfish</option>
     51 </select></label>
     52 <label>You play
     53 <select id="side">
     54   <option value="w" selected>white</option>
     55   <option value="b">black</option>
     56 </select></label>
     57 <label>Promote to
     58 <select id="promo">
     59   <option value="q" selected>queen</option>
     60   <option value="r">rook</option>
     61   <option value="b">bishop</option>
     62   <option value="n">knight</option>
     63 </select></label>
     64 <button type="button" id="new">New game</button>
     65 <button type="button" id="undo">Take back</button>
     66 <button type="button" id="flip">Turn the board</button>
     67 </form>
     68 
     69 <div class="chess">
     70 <div>
     71 <div id="board" class="board" role="grid" aria-label="Chess board"></div>
     72 <p id="status" class="status" aria-live="polite">Loading Stockfish...</p>
     73 </div>
     74 <div class="moves">
     75 <b>Moves</b>
     76 <ol id="moves"></ol>
     77 </div>
     78 </div>
     79 <noscript><p><b>The board needs JavaScript.</b> Everything else on this site works without it.</p></noscript>
     80 
     81 <p class="small">Click a piece, then the square it goes to. Pawns that reach the end become whatever's picked
     82 under "Promote to".</p>
     83 
     84 <h2>On your own computer</h2>
     85 <p>Stockfish is free software and runs anywhere. The new Chamesle has no chess program in it yet.</p>
     86 
     87 <h2>Who made what</h2>
     88 <p><a href="https://stockfishchess.org/">Stockfish</a> is by the Stockfish developers, under the
     89 <a href="chess/COPYING-stockfish.txt">GPL, version 3</a>. The version here is
     90 <a href="https://github.com/nmrugg/stockfish.js">Stockfish.js</a> 19.0.1, Nathan Rugg's build for browsers,
     91 the lite one with the small network; its source is on that page and in
     92 <a href="https://github.com/official-stockfish/Stockfish">Stockfish's own repo</a>. The rules of chess come from
     93 <a href="https://github.com/jhlywa/chess.js">chess.js</a> 1.4.0 by Jeff Hlywa
     94 (<a href="chess/LICENSE-chess.js.txt">BSD license</a>). The pieces are
     95 <a href="https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces">Cburnett's</a>, the ones on Wikipedia, under
     96 <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>. The board is ours, in
     97 <a href="chess/play.js">play.js</a>.</p>
     98 </main>
     99 
    100 <hr>
    101 <div id="foot">
    102 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
    103 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br>
    104 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
    105 <a href="#" id="edit-link">Edit text</a><br>
    106 $Date: 2026-11-14 $
    107 </div>
    108 
    109 </div>
    110 
    111 <noscript><p><b>The board needs JavaScript.</b> Everything else on this site works without it.</p></noscript>
    112 
    113 <p class="small">Click a piece, then the square it goes to. Pawns that reach the end become whatever's picked
    114 under "Promote to".</p>
    115 
    116 <h2>On your own computer</h2>
    117 <p>Stockfish is free software and runs anywhere. The new Chamesle has no chess program in it yet.</p>
    118 
    119 <h2>Who made what</h2>
    120 <p><a href="https://stockfishchess.org/">Stockfish</a> is by the Stockfish developers, under the
    121 <a href="chess/COPYING-stockfish.txt">GPL, version 3</a>. The version here is
    122 <a href="https://github.com/nmrugg/stockfish.js">Stockfish.js</a> 19.0.1, Nathan Rugg's build for browsers,
    123 the lite one with the small network; its source is on that page and in
    124 <a href="https://github.com/official-stockfish/Stockfish">Stockfish's own repo</a>. The rules of chess come from
    125 <a href="https://github.com/jhlywa/chess.js">chess.js</a> 1.4.0 by Jeff Hlywa
    126 (<a href="chess/LICENSE-chess.js.txt">BSD license</a>). The pieces are
    127 <a href="https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces">Cburnett's</a>, the ones on Wikipedia, under
    128 <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>. The board is ours, in
    129 <a href="chess/play.js">play.js</a>.</p>
    130 
    131 </main>
    132 
    133 <script type="module" src="chess/play.js?9"></script>
    134 <script src="edit.js"></script>
    135 </body>
    136 </html>