frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I trained a chess engine to play like humans

6•hazard•1h ago
I built 1e4.ai - a chess web app where you play against neural networks trained to mimic human Lichess players at specific Elo ranges. There's a separate model for each 100-point rating bucket from ~800 to 2200+, and the bots not only choose human-like moves but also burn clock time, play worse under time pressure, and blunder in human-like ways.

Live demo: https://1e4.ai Code: https://github.com/thomasj02/1e4_ai

A few things that might be interesting:

- Trained on almost a full year of Lichess blitz games, around 1B total games

- Architecture is an a small (~9MM parameters) transformer-based network that takes the board, recent move history, the player's rating, and remaining clock time as input. Three separate models per rating bucket: move, clock-usage, and win probability. The clock model is what makes the bots feel humanish under time pressure rather than instant. Because the move model takes the clock as one input parameter, it also learns to blunder under time pressure like a human might.

- Because the network is so tiny, no GPU is needed for inference - it runs easily on a local CPU

- Downside of the tiny network is that it's a bit weak as you turn up the rating past around 1700. It can spot short tactics but not long multi-move combinations.

- Initial training on a rented 8xH100 cluster, then fine-tunes on my local GPU for different rating ranges

- Inspired by Maia-2 and DeepMind's "Grandmaster-Level Chess Without Search". On a held-out Lichess blitz benchmark, the it beats Maia-2 blitz on top-1 move prediction (56.7% vs 52.7%) and pretty substantially on win-probability calibration (Brier 0.176 vs 0.272). Numbers and code in https://github.com/thomasj02/1e4_ai/tree/master/experiments/...

- The data pipeline is C++ via nanobind, then training with Pytorch. Getting this right was actually the thing I spent the most time on. Pre-shuffling the dataset and then being able to read the shuffled dataset sequentially at training time kept the GPU utilization high. Without this it spent a huge percentage of time on I/O while the GPU sat idle.

Happy to answer questions about the rating-conditioning, the clock model, or the data pipeline.

Show HN: An index of indie web/blog indexes

https://theindex.fyi
91•rocketpastsix•11h ago•28 comments

Show HN: I trained a chess engine to play like humans

6•hazard•1h ago•0 comments

Show HN: I made a Clojure-like language in Go, boots in 7ms

https://github.com/nooga/let-go
245•marcingas•1d ago•77 comments

Show HN: Building a web server in assembly to give my life (a lack of) meaning

https://github.com/imtomt/ymawky
387•imtomt•21h ago•206 comments

Show HN: Rust but Lisp

https://github.com/ThatXliner/rust-but-lisp
190•thatxliner•1d ago•69 comments

Show HN: Countries where you can leave your MacBook at a random coffee shop

https://vouchatlas.com
47•canergl•1d ago•49 comments

Show HN: Mosaic – arrange iOS icons by color using an evolutionary algorithm

https://github.com/RTiK/mosaic
3•artkh•5h ago•0 comments

Show HN: Mochi.js: bun-native high-fidelity browser automation library

https://mochijs.com/
44•ccheshirecat•1d ago•19 comments

Show HN: Hustler Bingo – a tiny bingo game about startup Twitter clichés

https://hustlerbingo.app
3•lackoftactics•3h ago•0 comments

Show HN: TRUST – Coding Rust like it's 1989

https://github.com/wojtczyk/trust
162•wojtczyk•3d ago•87 comments

Show HN: All 55,256 Slides of the WAR.GOV/UFO Files Searchable and Linkable

https://hypergrid.systems/war.gov-ufo-viewer/?item=095-dow-uap-pr38-unresolved-uap-report-middle-...
7•keepamovin•10h ago•2 comments

Show HN: Create flashcards with Space CLI

https://getspace.app/cli
21•friebetill•1d ago•10 comments

Show HN: Modafinil - Let agents continue running while MacBook lid is closed

https://github.com/narcotic-sh/modafinil
13•hamza_q_•20h ago•24 comments

Show HN: Git for AI Agents

https://github.com/regent-vcs/re_gent
118•doshay•2d ago•65 comments

Show HN: Free tool to mark points and polygon regions

https://tack.pics
20•magikMaker•4d ago•6 comments

Show HN: Chuchu, an Android SSH client built on libghostty

https://github.com/jossephus/chuchu
11•jossephus01•1d ago•2 comments

Show HN: Akmon, a Rust AI coding agent for regulated engineering

https://github.com/radotsvetkov/akmon
4•radotsvetkov•13h ago•0 comments

Show HN: GETadb.com – every GET request creates a DB

https://www.getadb.com/
38•nezaj•2d ago•43 comments

Show HN: ASCII pixel art editor for the terminal

https://github.com/Mr-Robot-err-404/perkins
9•doctor_schultz•13h ago•3 comments

Show HN: CADara – I made an open-source in-browser CAD

https://cadara.app
33•ttouch•2d ago•10 comments

Show HN: Tilde.run – Agent sandbox with a transactional, versioned filesystem

https://tilde.run/
200•ozkatz•4d ago•133 comments

Show HN: Airbyte Agents – context for agents across multiple data sources

150•mtricot•5d ago•47 comments

Show HN: Free Google Places API alternative using OpenStreetMap (no API key)

https://bizdata-web.vercel.app
9•johnleslie_pm•16h ago•1 comments

Show HN: Agent-skills-eval – Test whether Agent Skills improve outputs

https://github.com/darkrishabh/agent-skills-eval
76•darkrishabh•3d ago•36 comments

Show HN: I built an open-source email builder, alternative to Beefree/Unlayer

https://play.templatical.com
162•oahmadov•4d ago•48 comments

Show HN: Remind – schedule Claude Code on your Mac

https://olliewagner.com/remind
7•olliewagner•21h ago•3 comments

Show HN: Codebook of 450k+ unique words and phrases acts as a text compressor

https://i.postimg.cc/WpBcB4HK/IMG-20260510-103853.jpg
10•smalltorch•9h ago•1 comments

Show HN: Stage CLI – An easier way of reading your AI generated changes locally

https://github.com/ReviewStage/stage-cli
45•cpan22•3d ago•32 comments

Show HN: Hallucinopedia

http://halupedia.com/
304•bstrama•4d ago•266 comments

Show HN: A search engine for deleted YouTube videos (1.5B+ indexed since 2005)

https://tube.archivarix.net/
13•archivarix•1d ago•4 comments