試す 金 - 無料
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…

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.
このストーリーは、Linux Format の July 2020 版からのものです。
Magzter GOLD を購読すると、厳選された何千ものプレミアム記事や、9,500 以上の雑誌や新聞にアクセスできます。
すでに購読者ですか? サインイン
Linux Format からのその他のストーリー

Linux Format
Create your first WebSocket service
Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.
9 mins
April 2023

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.
9 mins
April 2023

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.
8 mins
April 2023

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.
8 mins
April 2023

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.
9 mins
April 2023

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!
4 mins
April 2023

Linux Format
Master RPI.GPIO
Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -
5 mins
April 2023

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.
2 mins
April 2023

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.
19 mins
April 2023

Linux Format
Linux-Mandrake 7
Simplicity and a wide range of applications make this a great distribution for all Linux users.
2 mins
April 2023
Translate
Change font size