Playing chess over IRC from Emacs, even against a bot

Anne Barela · 2026年11月30日

AI 摘要 AI 生成,可能有误

Andros Fenollosa explains how to play chess over IRC from within Emacs using the emacs-chess package, with moves sent as commands in private messages. He fixed the package's broken IRC support, added a chess-irc-engage function to challenge friends by nickname, and enabled in-game chat with opponents. He also built Stockfish-based bots at four difficulty levels, available via his chess-irc-bot GitHub repository.

Andros Fenollosa has written up how to play chess over IRC from inside Emacs, using the emacs-chess package. Moves are sent as commands in a private conversation. He runs ngircd, a small IRC server written in C.

The IRC part of emacs-chess was broken. He fixed it. He also added a chess-irc-engage function to challenge a friend by their nick. Pressing a key during a game opens a chat buffer for talking to the opponent.

He also built a bot to play against. It’s based on Stockfish, a free chess engine. His chess-irc-bot repository starts the server and four bot nicks, one per difficulty level.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Adafruit Blog

The Python on Microcontrollers Newsletter: subscribe for free

AI 摘要The Python for Microcontrollers Newsletter is a free, ad-free weekly email covering the latest news about Python on hardware, including microcontrollers and single-board computers like Raspberry Pi. It delivers a weekly roundup of CircuitPython, MicroPython, and Python software, events, projects, and hardware updates, arriving Mondays around 11 am US Eastern time. Readers can subscribe for free, cancel anytime, and are encouraged to share it with friends and colleagues.

Announcing the PSF Security Roadmap for Python and PyPI

AI 摘要Seth Michael Larson has published the PSF Security Roadmap for Python and PyPI on the Python Software Foundation blog, outlining the Foundation's security priorities for the coming year. Key initiatives include expanding the PyPI malware reporting API—whose high-confidence reports can automatically quarantine projects, as demonstrated when the Telynx supply-chain attack was shut down in under three hours—plus a new Malware Triager role. Additionally, the Python Security Response Team is now publishing about four times as many vulnerabilities, largely due to LLMs finding bugs in open source code, while Emma Smith, Bénédikt Tran, and Seth Larson are writing a PEP on quantum-safe algorithms.

Building and programming the pocket MINIL computer

AI 摘要The Pocket MINIL Computer, published on Technoblogy, is a handheld machine-code trainer with a hexadecimal keypad that runs a simplified one-byte instruction set called MINIL, displaying the corresponding assembler statements as opcodes are entered. Its built-in development environment offers breakpoints, single-stepping, and a slow mode that pauses to show register contents, and it comes with eight example programs including Fibonacci and long division. The device is built around an AVR64DD14 chip with a 128×64 OLED display, reads keys via a resistor ladder on one analog input, and is powered by two AAA cells whose holder doubles as a stand.

retro-bionic: a circuit board to run retro hardware CPUs

AI 摘要Tadashi G. Takaoka has released Bionic on GitHub, a circuit board that runs real vintage CPUs such as the Z80, which can be stepped one bus cycle at a time from a terminal. A Teensy 4.1 wired to all processor pins drives the clock, bus cycles, and emulated memory and peripherals, while a single firmware image provides an assembler, disassembler, and debugger for every supported chip. The two-board hardware, with CPU boards mapping signals via small pinout files, is licensed under the Apache License, Version 2.0.

ICYMI: The Python on Microcontrollers Newsletter: CircuitPython 11 Beta, VS Code Decline, 700 CP Boards, Dabao Support and More!

AI 摘要This ICYMI edition of the Python on Microcontrollers Newsletter highlights the release of CircuitPython 11.0.0-beta.0 with a new displayio built on LVGL, the milestone of 700 CircuitPython-compatible boards, and a new CircuitPython port for the Dabao chip. It also covers declining VS Code usage as AI coding tools like Claude Code rise, a browser-based MicroPython editor called Pico Pipette, and the Python Software Foundation reopening its Grants Program with a $125,000 round. The issue rounds out with community projects, updated Adafruit learning guides, and CircuitPython library updates bringing the total to 605 libraries.