How to Play Chess in Your Linux Terminal (With Multiplayer Support … – MUO – MakeUseOf
Chess is the original 4X RPGgiving you command of territory and an army, together with a mission to explore and expand across the board, exploit your enemy's weakness, and then exterminate your opponent.
While it's simple to play online chess in a browser, you can also stage a two-player chess game in your terminal, either with an opponent in the same room or via SSH, meaning your opponent could be anywhere in the worldor beyond. Here's how.
Chess is one of the greatest games of all time, with a history going back to the 6th Century Gupta Empire in India. Although the rules have been refined over time, chess has remained popular due to its accessibility, and the cerebral challenge of pitting one person's skills against another.
If you've never played chess before, don't fret; you can easily learn to play Chess on your phone.
Traditionally, chess is a two-player game, played using a physical board with 64 squares, and two armies of 16 pieces.
Before the advent of the internet, if you wanted to play chess with someone who wasn't in the same room as you, each player would have to have their own chess board and communicate their moves via a letter telegram, phone, or a message in the newspaper.
Today, you can use mobile apps to instantly join chess games, or open a web browser and join one of the many online chess sessions on dedicated sites.
But mobile apps can be costly, and not everyone has a computer with a web browseror even a graphical desktop.
With Gambit, you can create a chess game in your terminal, and play with the person sitting next to you. Alternatively, you can serve or join a game over SSH, meaning you can play instantly against anyone in the world.
Gambit is written in Google's Go language, so before you start, make sure that you have Go installed on your Linux system.
If your distro supports Snap, the easiest way to install Go is with:
With Go installed, you can install Gambit with:
This command will install the Gambit binary to ~/go/bin/gambit.
You can make the binary accessible from any terminal location by creating a symbolic link with the ln command:
You can then start Gambit with:
Alternatively, you can install Gambit by cloning its GitHub repository:
Then, use the cd command to navigate to the new directory:
Finally, start Gambit with:
If you're a fan of Snap packages, you can install Gambit with the snap command as follows:
If you've read this far, it's probably safe to say that you know at least the basics of how to play chess.
The game starts as soon as you open Gambit, and you'll see a chess board, complete with representations of the chess pieces in either white or black with a white outline.
When it's your turn to move, click on a piece. You'll see a colored dot representing the spaces your piece can move to. Click on one to move your piece.
Alternatively, if your machine doesn't have a mouse, you can use the keyboard to type out the square the piece you want to move is on, then type out the square onto which you want to move the piece.
The only minor gripe we have with playing chess this way is that the chessboard squares are all black, rather than black and white. This can make it a little difficult to easily visualize paths for your pieces.
If you're playing against an opponent on the same computer, you can press the Ctrl + F key combo to flip the board around to give them a better view of the action.
But if you're sitting next to someone, it's probably just as easy, and slightly more satisfying, to break out a real chess board and set up the pieces. It's in playing remote players that Gambit comes into its own.
Secure Shell (SSH) is a protocol used to connect to remote devices securely, and with it, you can host a chess game with Gambit and have other players connect to it.
Before you start, you'll need to create an SSH key. It's not in the documentation, but Gambit will reject keys created with the RSA algorithm. You'll need to use the newer ECDSA algorithm with a minimum key size of 256 bits to host a chess game over SSH with Gambit.
On the host machine, enter:
Choose whether you want to use a password, and then hit Enter. You can find your new key pair in the "~/.ssh/" directory.
If you're playing against an opponent on a different network, the host will need to open port 53531 on their router and forward connections to the host machine's IP address. This requires you to have some basic knowledge about port forwarding on a router.
To start the Gambit server, enter:
Gambit will start the server on port 53531, and players can connect to the game with:
...where room_name is a name picked by the first player to join.
Back on the host machine, you won't find a chessboard in your existing terminal window. Open a second window or tab, then enter:
You can now play a game against your opponent.
If you know your opponent and schedule regular matches against them, Gambit makes it super easy to create or connect to a match.
If your friends don't play chess, don't use Linux, or if you just don't have any friends, you can play solitaire in your terminal instead!
Read more here:
How to Play Chess in Your Linux Terminal (With Multiplayer Support ... - MUO - MakeUseOf
- Magnus Carlsen agreed to the photo. Then he turned around and told the judges. - World Chess - April 5th, 2026 [April 5th, 2026]
- Chess Mates: the fantastic true story of the sex toy rumour that buzzed around the world - The Guardian - April 5th, 2026 [April 5th, 2026]
- Chess Live Prediction Markets & Live Odds - Polymarket - April 5th, 2026 [April 5th, 2026]
- FIDE World Team Rapid and Blitz Chess Championships 2026 - en.chessbase.com - April 5th, 2026 [April 5th, 2026]
- CHESS Will Release Cast Recording Next Week; Listen to 'Anthem' Now - BroadwayWorld.com - April 5th, 2026 [April 5th, 2026]
- Carlsen, Nepomniachtchi, Niemann Still Perfect In Karlsruhe As 19 Players Reach 3/3 - Chess.com - April 5th, 2026 [April 5th, 2026]
- Malagasy Chess Federation elects new Executive Board for 20262030 - FIDE - April 5th, 2026 [April 5th, 2026]
- Sindarov in danger of running away with the Candidates after he moves to 5.5/6 - The Week in Chess - April 5th, 2026 [April 5th, 2026]
- Candidates R4: Head-to-head stats - en.chessbase.com - April 5th, 2026 [April 5th, 2026]
- My obsession with this 11-year-old chess champion has taught me how to win - The i Paper - April 5th, 2026 [April 5th, 2026]
- Khanty-Mansiysk to Host XXIII Anatoly Karpov International Tournament - - April 5th, 2026 [April 5th, 2026]
- What are the anti-cheating measures at FIDE Candidates 2026 that triggered debate among top players - Firstpost - April 5th, 2026 [April 5th, 2026]
- Controversy at the Candidates Tournament in chess. A grandmaster accuses the organizers: "It's as if we are Mossad agents in Iran" -... - April 5th, 2026 [April 5th, 2026]
- Britain's No.1 female player is just eleven years old! - Chess News | ChessBase - April 3rd, 2026 [April 3rd, 2026]
- Pixie Chess Funding Rounds, Token Sale Review & Tokenomics Analysis - CryptoRank - April 3rd, 2026 [April 3rd, 2026]
- Sindarov 'really surprised' with Gukesh opting out of Grand Chess Tour, looks forward to 'dream' GCT debut - Firstpost - April 3rd, 2026 [April 3rd, 2026]
- Someone You Should Know: Passing the game of chess along - Dakota News Now - April 3rd, 2026 [April 3rd, 2026]
- Caruana, Sindarov, Lagno, and Assaubayeva steal the spotlight at Cap St Georges International Chess Federation - FIDE - April 3rd, 2026 [April 3rd, 2026]
- Mind games: How football stars are fuelling chess boom - France 24 - April 3rd, 2026 [April 3rd, 2026]
- Mind games: How football stars are fuelling chess boom - The Killeen Daily Herald - April 3rd, 2026 [April 3rd, 2026]
- Sindarov Ahead in Candidates, While Asaubayeva Shares Womens Lead - The Times Of Central Asia - April 3rd, 2026 [April 3rd, 2026]
- World Chess Weekly: Sindarov Sizzles At The CandidatesBut Carlsen's Also In Action In Karlsruhe - World Chess - April 3rd, 2026 [April 3rd, 2026]
- Chess Grand Master Ottomar Ladva Captures a WSOP Super Circuit Ring and $311K - PokerNews - April 3rd, 2026 [April 3rd, 2026]
- Global launch: FIDE Preparation of Teachers Course for Women Around the World International Chess Federation - FIDE - April 3rd, 2026 [April 3rd, 2026]
- Qualifiers confirmed for FIDE Womens Grand Prix 2026-2027 International Chess Federation - FIDE - April 3rd, 2026 [April 3rd, 2026]
- LeBron Reveals Why He Loves Golf, Reason He Started Playing and Chess Aspirations Next in New Video - Bleacher Report - April 3rd, 2026 [April 3rd, 2026]
- Seligdar supports the holding of an All-Russian chess tournament - AKM.RU - April 3rd, 2026 [April 3rd, 2026]
- Untold: Chess Mates | Where to Stream and Watch - Decider - April 3rd, 2026 [April 3rd, 2026]
- Striking gambit: Erling Haaland invests in new world chess championship - The Guardian - March 22nd, 2026 [March 22nd, 2026]
- Erling Haaland invests in new Total Chess World Championship Tour - BBC - March 22nd, 2026 [March 22nd, 2026]
- Live lecture: Power of the King - Chess News | ChessBase - March 22nd, 2026 [March 22nd, 2026]
- Hear the 1st Single From the Chess Broadway Revival Cast Album - Playbill - March 22nd, 2026 [March 22nd, 2026]
- POLL! So Who Do You Got in the 2026 Candidates Tournament, the Second Most Prestigious Event in Chess? - Lost Coast Outpost - March 22nd, 2026 [March 22nd, 2026]
- 'Gukesh became world champion by accident...Carlsen is effectively still the champion': Russian chess legend Karpov - Firstpost - March 22nd, 2026 [March 22nd, 2026]
- Medieval chess was more inclusive than the world around it - Popular Science - March 22nd, 2026 [March 22nd, 2026]
- Lea Michele to Exit Chess on Broadway in June - Variety - March 22nd, 2026 [March 22nd, 2026]
- Lea Michele To Depart 'Chess' on Broadway in June - The Hollywood Reporter - March 22nd, 2026 [March 22nd, 2026]
- Lea Michele Shares Why Recording Nobodys Side From Broadways Chess Was One of The Most Incredible Moments Of Her Career - Billboard - March 22nd, 2026 [March 22nd, 2026]
- Medieval chess promoted racial harmony and mutual respect, say historians - Phys.org - March 22nd, 2026 [March 22nd, 2026]
- Erling Haaland invests in Norway Chess to launch the new Total Chess World Championship Tour - FIDE - March 22nd, 2026 [March 22nd, 2026]
- See Lea Michele, Nicholas Christopher, Aaron Tveit, Perform Songs From Chess for Broadway on the Radio - Playbill - March 22nd, 2026 [March 22nd, 2026]
- Why Erling Haaland Signed Up For Norway Chess: 'The Project Was Too Exciting To Pass Up' - World Chess - March 22nd, 2026 [March 22nd, 2026]
- World Chess Weekly: Everyone Wants To Call The Candidates Early - World Chess - March 22nd, 2026 [March 22nd, 2026]
- Chess: Scotlands Freddy Waldhausen Gordon, 15, routs the English in British Rapidplay - The Guardian - March 22nd, 2026 [March 22nd, 2026]
- Erling Haaland has another business venture. This time in chess - Yahoo Sports - March 22nd, 2026 [March 22nd, 2026]
- Manchester Citys Erling Haaland invests in new chess tournament with $2.7m prize pot - The Athletic - The New York Times - March 22nd, 2026 [March 22nd, 2026]
- Erling Haaland Invests in Chess! New Total World Championship Tour Announced - WION - March 22nd, 2026 [March 22nd, 2026]
- Lea Michele Unpacks the 'Scary' Parallels Between Cold War Musical 'Chess' and Now | Video - TheWrap - March 22nd, 2026 [March 22nd, 2026]
- Kiriakov Petr in joint lead at Chess for Everyone Kerela 2026 - ChessBase India - March 22nd, 2026 [March 22nd, 2026]
- Tips for Beginners, Part 8: Together what belongs together...! - Chess News | ChessBase - March 22nd, 2026 [March 22nd, 2026]
- Svitlana's Smart Moves - The Candidates: Who will win? (II) - Chess News | ChessBase - March 22nd, 2026 [March 22nd, 2026]
- Alohi Gilman already sounds like the perfect chess piece for Steve Spagnuolo - Arrowhead Addict - March 13th, 2026 [March 13th, 2026]
- Jan Timman Dies at 74; Fearless Chess Grandmaster and Bon Vivant - The New York Times - March 13th, 2026 [March 13th, 2026]
- Judit Polgar on Gukesh: Am sure he has great future, but not sure hes going to be world champion after next match - The Indian Express - March 13th, 2026 [March 13th, 2026]
- More than 150,000 magnet chess games recalled due to violating the mandatory standard for toys - WVNS - March 13th, 2026 [March 13th, 2026]
- Teaching Babies Chess Might Sound WildBut This Champion Makes a Compelling Case - Parents - March 13th, 2026 [March 13th, 2026]
- Consumer Alert: Chess game recalled due to child chocking hazard - KVOA - March 13th, 2026 [March 13th, 2026]
- Cardinals rising star JJ Wetherholt also shines in chess and fishing - FOX 2 - March 13th, 2026 [March 13th, 2026]
- Bradford chess wins third straight state title - The Bradford Era - March 13th, 2026 [March 13th, 2026]
- Prague International Chess Festival 2026 - Behind the scenes - Chess News | ChessBase - March 13th, 2026 [March 13th, 2026]
- Vikings interim GM Rob Brzezinski playing chess, not checkers with the salary cap - A to Z Sports - March 13th, 2026 [March 13th, 2026]
- Laredo 8-year-old finishes second at Texas Scholastic Super State Chess Championship - KLTV.com - March 13th, 2026 [March 13th, 2026]
- Laredo 8-year-old finishes second at Texas Scholastic Super State Chess Championship - KGNS - March 13th, 2026 [March 13th, 2026]
- Danny Rensch on Purpose, Pain, and the Power of Chess - The Times of India - March 13th, 2026 [March 13th, 2026]
- Laredo 8-year-old places 2nd in Texas state chess championship - KGNS - March 13th, 2026 [March 13th, 2026]
- Life-Threatening Hazard Sparks Massive Recall Of Popular Board Game - dailyvoice.com - March 13th, 2026 [March 13th, 2026]
- Wesley So gets the job done in the American Cup after four failed attempts, including runner-up finishes to Hikaru Nakamura in 2023 and Levon Aronian... - March 13th, 2026 [March 13th, 2026]
- Indias National School Chess League opens 2026 onboarding for Schools - ChessBase India - March 13th, 2026 [March 13th, 2026]
- Pictorials: That was the year that was - Chess News | ChessBase - March 13th, 2026 [March 13th, 2026]
- The American Cup EndsNow The Cold War Before The Candidates Begins - World Chess - March 13th, 2026 [March 13th, 2026]
- Hans Niemann Feels His 'Entire Life' Has Been 'Destroyed' from Cheating Scandal in Untold: Chess Mates (Exclusive) - People.com - March 11th, 2026 [March 11th, 2026]
- Understudies From Little Shop, Ragtime, Chess, More Will Step Into the Spotlight This Month - Playbill - March 11th, 2026 [March 11th, 2026]
- CHESS, MAMMA MIA!, and RAGTIME Lead Nominations for the Inaugural Broadway Ensemble Awards - BroadwayWorld.com - March 11th, 2026 [March 11th, 2026]
- Busy weeks of competition for young Evanston chess players - Evanston RoundTable - March 11th, 2026 [March 11th, 2026]
- Hannah Cruz Talks Chess, Working With Lea Michele and the Long Game of Filming Merrily We Roll Along - Broadway Shows - March 11th, 2026 [March 11th, 2026]
- FIDE Candidates 2026 Fan Zone: Meet the players in Paphos International Chess Federation - FIDE - March 11th, 2026 [March 11th, 2026]
- More than just a game: Free chess classes aim to reduce youth violence in Boston - The Boston Globe - March 11th, 2026 [March 11th, 2026]
- Filipino-born chess player Wesley So closes in on his first American Cup title following runner-up finishes in 2023 and 2024 - facebook.com - March 11th, 2026 [March 11th, 2026]
- Uzbek Grandmaster Abdusattorov Wins in Prague: I Was Always in Control. - The Times Of Central Asia - March 11th, 2026 [March 11th, 2026]
- Magnetic chess game recalled in Canada due to possible life-threatening risk - Inside Halton - March 11th, 2026 [March 11th, 2026]