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
- JoJo Reacts to Broadway's Chess Closing Announcement Hours Before Starting Rehearsal - E! News - May 31st, 2026 [May 31st, 2026]
- The crazy sex toy scandal that blew up the chess world and its strange aftermath four years later - New York Post - May 31st, 2026 [May 31st, 2026]
- Carlsen, Gukesh and Chess are changing, and Norway Chess 2026 is epitomising the trend - Firstpost - May 31st, 2026 [May 31st, 2026]
- Norway Chess round 6: Dad Carlsen feeling the heat - The Times of India - May 31st, 2026 [May 31st, 2026]
- Kramnik Drops Part Three. Inside: When FM Plays the Endgame Better Than Magnus Carlsen. - World Chess - May 31st, 2026 [May 31st, 2026]
- Nicholas Christopher on Career, Life, and Winning a Really Tough Chess Match - Town & Country Magazine - May 31st, 2026 [May 31st, 2026]
- Overseas Family School: A model for educational chess in Singapore International Chess Federation - FIDE - May 31st, 2026 [May 31st, 2026]
- How Manchester City perfected the art of the set piece: Its like a chess game - The Athletic - The New York Times - May 31st, 2026 [May 31st, 2026]
- Katerina Papacostas talks about starring in the musical Chess on Broadway - Digital Journal - May 31st, 2026 [May 31st, 2026]
- Magnus Carlsen pulls out proper old guy move in win over Alireza Firouzja - The Indian Express - May 31st, 2026 [May 31st, 2026]
- Travelling with chess legend Viswanathan Anand - Cond Nast Traveller India - May 31st, 2026 [May 31st, 2026]
- 'Happier and sharper' Gukesh fights to beat Pragg in Rd 5 at Norway Chess - The New Indian Express - May 31st, 2026 [May 31st, 2026]
- Gukesh climbs to third with tense Norway Chess win - MSN - May 31st, 2026 [May 31st, 2026]
- Grandmaster Minh grabs place in chess at ENC 2026 - Thng tn x Vit Nam - May 31st, 2026 [May 31st, 2026]
- RED SEA CHESS: The Egypt-Eritrea Axis Rewiring the Horn of Africa From Isolation to Influence: Why Every Player in This Alliance is Gaining - DNE... - May 31st, 2026 [May 31st, 2026]
- At Norway Chess, the Armageddon exhausts the players and thrills the crowd - The Indian Express - May 31st, 2026 [May 31st, 2026]
- Chess Will Close on Broadway in June - Playbill - May 29th, 2026 [May 29th, 2026]
- Norway Chess: Carlsen beats Gukesh, So stops Firouzja - Chess News | ChessBase - May 29th, 2026 [May 29th, 2026]
- Taekwondo and chess? St. George man starts academy combining 2 of his passions - KSL.com - May 29th, 2026 [May 29th, 2026]
- FIDE World University Team Chess Championship 2026: Eight teams reach over-the-board final - Chess News | ChessBase - May 29th, 2026 [May 29th, 2026]
- Norway Chess: Pragg beats Carlsen in wild encounter - Chess News | ChessBase - May 29th, 2026 [May 29th, 2026]
- 'Chess' to close on Broadway in June - New York Theatre Guide - May 29th, 2026 [May 29th, 2026]
- Chess To Close Early On Broadway Next Month With Departure Of Lea Michele - Deadline - May 29th, 2026 [May 29th, 2026]
- Broadway Revival of Chess Announces Early Closing Date - Ticket News - May 29th, 2026 [May 29th, 2026]
- JoJo Speaks Out After Chess Closing News Derails Her Broadway Return: 'Was Supposed to Start Rehearsals Today' - People.com - May 29th, 2026 [May 29th, 2026]
- Pop/R&B singer JoJo reacts to Broadway's Chess closing 2 days before her scheduled appearance - Entertainment Weekly - May 29th, 2026 [May 29th, 2026]
- 'Chess' Announces Broadway Closing After Missing Major Tony Award Nominations, Canceling JoJos Planned Run - People.com - May 29th, 2026 [May 29th, 2026]
- JoJo Appears Blindsided by 'Chess' Closing, Was Supposed to Start Rehearsals Hours Before Announcement - Just Jared - May 29th, 2026 [May 29th, 2026]
- The 64 invited chess players for the Esports Nations Cup have been named - Gamereactor UK - May 29th, 2026 [May 29th, 2026]
- Tony Nominee Hannah Cruz On Her Electrifying, Stakes-Raising Turn In Chess [VIDEO] - The Contending - May 29th, 2026 [May 29th, 2026]
- Bryce Pinkham and Hannah Cruz Bring Chess ' Supporting Roles Into the Spotlight - Playbill - May 29th, 2026 [May 29th, 2026]
- Asian Individual Chess Championships 2026 | Open - All the Information - Chess.com - May 29th, 2026 [May 29th, 2026]
- Chess, the Broadway musical revival, will close June 21, three months earlier than expected and the final performance of star Lea Michele. Read more... - May 29th, 2026 [May 29th, 2026]
- Norway Chess: Carlsen prevails over Gukesh in a knife-fight - The New Indian Express - May 29th, 2026 [May 29th, 2026]
- Nicholas Christopher the Champ of Chess: Meet the Broadway Breakout (Exclusive) - People.com - May 29th, 2026 [May 29th, 2026]
- Can you solve it? Are you on board with these quirky chess puzzles? - The Guardian - May 29th, 2026 [May 29th, 2026]
- Video: JoJo Sings From CHESS & Shares Reaction to Production Closing with Lea Michele - BroadwayWorld - May 29th, 2026 [May 29th, 2026]
- Chess Proved a Famous Name Can Open a Show, But It Cant Always Save One - OnStage Blog - May 29th, 2026 [May 29th, 2026]
- JoJo Was Set to Start CHESS Rehearsals the Day They Announced Closing - BroadwayWorld - May 29th, 2026 [May 29th, 2026]
- World #1 Chess Player Magnus Carlsen Defeated On Home Turf By 22-Year-Old Rival - Men's Journal - May 29th, 2026 [May 29th, 2026]
- Chess ' Hannah Cruz May Have the Wildest Trophy of Any 2026 Tony Nominee - Broadway Shows - May 29th, 2026 [May 29th, 2026]
- Watch: World chess champion D Gukesh in splits after Javokhir Sindarov asked to sing on his birthday - The Times of India - May 29th, 2026 [May 29th, 2026]
- Chess to Close on Lea Micheles Final Show, Ending JoJos Return to Broadway - Just Jared - May 29th, 2026 [May 29th, 2026]
- JoJo Gives Lengthy Response to 'Chess' Closing in New Video, Cast Members Send Her Support - Just Jared - May 29th, 2026 [May 29th, 2026]
- Magnus Carlsen had to fight 'doubts' to beat Gukesh 'who was up for a fight' at Norway Chess - Firstpost - May 29th, 2026 [May 29th, 2026]
- Chess in uniform: A celebration of those who serve - Washington Times - May 27th, 2026 [May 27th, 2026]
- In Western Conference (chess) finals, it's 2-2 between the Spurs and Thunder. Game 5 awaits - Santa Fe New Mexican - May 27th, 2026 [May 27th, 2026]
- Asian Individual Chess Championships Kick Off on 28 May in Mongolia - - May 27th, 2026 [May 27th, 2026]
- Chess: Injured Firouzja beats Carlsen in round one of Norway Chess - Financial Times - May 27th, 2026 [May 27th, 2026]
- Eight-year-old chess phenom Mehmet Yilanli is poised to best best in the world - myfox28columbus.com - May 27th, 2026 [May 27th, 2026]
- Inside the Oslo chess pub where Magnus Carlsen can hide in plain sight - The Indian Express - May 27th, 2026 [May 27th, 2026]
- Spurs, Thunder tied in Western Conference chess match - Mon Valley Independent - May 27th, 2026 [May 27th, 2026]
- Inside the Spurs' Chess Move That Swung the Western Conference Finals Against the Thunder - Sports Illustrated - May 27th, 2026 [May 27th, 2026]
- Carlsen challenges rest of chess world to unseat him from No 1 position: Its up to others to make a run - Firstpost - May 27th, 2026 [May 27th, 2026]
- CHESS CORNER: What has teeth and no hands? - Muskogee Phoenix - May 27th, 2026 [May 27th, 2026]
- Norway Chess: Divya Deshmukh stuns world champion Ju Wenjun in Armageddon; Magnus Carlsen handed shock de - The Times of India - May 27th, 2026 [May 27th, 2026]
- Gukesh, Praggnanandhaa stumble in Round 2 of Norway Chess as Carlsen escape with a victory - Firstpost - May 27th, 2026 [May 27th, 2026]
- Norway Chess 2026: Gukeshs test, Koneru Humpy's return Why should you be excited? - The Times of India - May 27th, 2026 [May 27th, 2026]
- Like a cow ashamed of its body: Magnus Carlsen invents phrase to critique himself - The Indian Express - May 27th, 2026 [May 27th, 2026]
- Welcome to The Good Knight in Oslo the world's first chess pub - The New Indian Express - May 27th, 2026 [May 27th, 2026]
- Defeated by chess: how those who chase greatness in the ancient game often pay a terrible price - Toronto Star - May 17th, 2026 [May 17th, 2026]
- Chess: Niemann puts controversy aside and wins $50,000 first prize in Warsaw - The Guardian - May 17th, 2026 [May 17th, 2026]
- The Times explores chess revival at Simpson's in the Strand - Chess News | ChessBase - May 17th, 2026 [May 17th, 2026]
- 'Lower the stigma': Kwan hosts chess tourney for mental health awareness - MLB.com - May 17th, 2026 [May 17th, 2026]
- FIDE World University Team Chess Championship 2026: 32 teams advance to knockout stage - FIDE - May 17th, 2026 [May 17th, 2026]
- And We're Off! - US Chess Federation - May 17th, 2026 [May 17th, 2026]
- Discover Chanel's $4 million chessboard, which secretly tells the time - wallpaper.com - May 17th, 2026 [May 17th, 2026]
- The 3 chess moves John Mozeliak made to build a surprising Cardinals winner - FanSided - May 17th, 2026 [May 17th, 2026]
- Praggnanandhaa holds off Jorden van Foreest to stay unbeaten in Romania - The Indian Express - May 17th, 2026 [May 17th, 2026]
- Tony nominee Nicholas Christopher reflects on his career turning moment in Broadways Chess during the latest episode of On The Go with Deadline. Watch... - May 17th, 2026 [May 17th, 2026]
- FIDE World University Team Chess Championship 2026: 32 teams advance to knockout stage - Chess News | ChessBase - May 17th, 2026 [May 17th, 2026]
- Faustino Oro, the Messi of chess, becomes second-youngest GM in history International Chess Federation - FIDE - May 17th, 2026 [May 17th, 2026]
- CHESS and RAGTIME Casts, and More Will Perform at Chita Rivera Awards - BroadwayWorld - May 17th, 2026 [May 17th, 2026]
- Review: The Ultimate Antidote against the London System - Chess News | ChessBase - May 17th, 2026 [May 17th, 2026]
- CATS, CHESS, RAGTIME, and SCHMIGADOON! Nominated For Broadway Chorus Awards - BroadwayWorld - May 17th, 2026 [May 17th, 2026]
- How AI Changed Chess Forever- for the better - The Tech Buzz - May 17th, 2026 [May 17th, 2026]
- Tamil Nadu is considering bidding to host the 2026 World Chess Championship featuring reigning champion D. Gukesh in Chennai. Sports Minister Aadhav... - May 17th, 2026 [May 17th, 2026]
- Play chess or D&D and create a beaded suncatcher at JCPL branches - Newsbug.info - May 17th, 2026 [May 17th, 2026]
- Faustino Oro: The second-youngest chess grandmaster in history - EL PAS English - May 17th, 2026 [May 17th, 2026]
- Steven Kwan hosts second annual Check on Your Mate Chess Tournament at Progressive Field - Cleveland 19 News - May 17th, 2026 [May 17th, 2026]