Playing chess in your terminal
Linux Format|July 2020
Jonni still hasn’t written a 10-page feature on chess, so Neil Mohr starts playing the classic strategy game in his terminal while he waits…
Neil Mohr
Playing chess in your terminal

Known to be over 1,200 years old, chess remains a key test of strategy, mental ability, computational power and is generally a good way of passing the time. If you can represent an eight by eight grid with suitable symbols for the pieces then you can have a game of chess. So why not play chess in your terminal?

While we wait for Jonni to write something far more engaging and informative on how to have fun with chess and open source, we’ll have to make do with the slim pickings we can squeeze into these two pages. Partly this was all kicked off by stumbling across a dreadfully written bespoke open source chess game, which had some ginormous fixed-state machine built from an unfathomable number of nested if statements. So, stuff that for a party.

As Jonni will go into far more depth than space allows here when he gets around to writing his legendary chess feature, there’s no need to reinvent the chess-shaped wheel. There are a host of accomplished open source chess engines which any front-end that feels the need can plug into. The most common is one called Stockfish often described as “the strongest conventional chess engine in the world” and who are we to argue?

Install the chess engine

The first thing you’ll want to do is install Stockfish. The version in the repository will be fine, and in these Ubuntu 20.04 days that would be the current v11-1 release. A sudo apt install stockfish will do the trick.

Esta historia es de la edición July 2020 de Linux Format.

Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.

Esta historia es de la edición July 2020 de Linux Format.

Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.

MÁS HISTORIAS DE LINUX FORMATVer todo
Create your first WebSocket service
Linux Format

Create your first WebSocket service

Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.

time-read
9 minutos  |
April 2023
Fantastic Mr Firefox
Linux Format

Fantastic Mr Firefox

Nick Peers takes a trip down memory lane to reveal the story behind the rise - and slight fall - of Mozilla's popular web browser.

time-read
9 minutos  |
April 2023
Set up your terminal and email like it's 1983
Linux Format

Set up your terminal and email like it's 1983

Jump in the hot terminal time machine with Mats Tage Axelsson who emails from the command line using the latest technology.

time-read
8 minutos  |
April 2023
Universal layer text effects with GIMP
Linux Format

Universal layer text effects with GIMP

Posters use them, films and presentations are hard to imagine without them: text effects. Attract attention with Karsten Günther and GIMP.

time-read
8 minutos  |
April 2023
Jump to a federated social network
Linux Format

Jump to a federated social network

Nick Peers reveals how you can get up and running with this free, decentralised and non-profit alternative to Twitter.

time-read
9 minutos  |
April 2023
Free our SOFTWARE!
Linux Format

Free our SOFTWARE!

Taking anything for granted is dangerous, so Jonni Bidwell and Mike Saunders revisit how the free software movement got started to help free us from proprietary tyranny!

time-read
4 minutos  |
April 2023
Master RPI.GPIO
Linux Format

Master RPI.GPIO

Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -

time-read
5 minutos  |
April 2023
Waveshare Zero to Pi3
Linux Format

Waveshare Zero to Pi3

Transform your Pi Zero into a Pi 3, they promised Les Pounder, but it's more like adding on go-faster stripes.

time-read
2 minutos  |
April 2023
The Best OPEN SOURCE Software Ever!
Linux Format

The Best OPEN SOURCE Software Ever!

In an attempt to trigger controversy, Michael Reed and Neil Mohr unequivocally state these are the greatest free software apps ever. Probably. We’re just trying to be helpful.

time-read
10+ minutos  |
April 2023
Linux-Mandrake 7
Linux Format

Linux-Mandrake 7

Simplicity and a wide range of applications make this a great distribution for all Linux users.

time-read
2 minutos  |
April 2023