Everyone Chess Mac OS
Operating Systems Mac OS X 10.4 PPC, Mac OS X 10.5 PPC, Mac OS X 10.4 Intel, Mac OS X 10.5, Mac OS X 10.5 Intel, Mac OS X 10.6 Intel, Macintosh, Mac OS X 10.4. In the Chess app on your Mac, do any of the following. Set the level of difficulty: Choose Chess Preferences, then drag the slider toward Faster or Stronger to decrease or increase the difficulty or speed (not available when you’re playing another person). Change the look of a game: Choose Chess.
It’s not hard to count the number of bundled games in OS X (not counting games available via Terminal). The total count is one—Chess, which you’ll find in the Applications folder. While you can run this game easily enough in the Finder with a double-click, that really wouldn’t make for much of a hint. Instead, we’re going to take a look at how you can directly access the engine that runs Chess from Terminal.
Why would you want to do this? Honestly, I’m not sure—perhaps you’re a chess addict, playing for hours on end, and you’re tired of all the beautiful 3-D eye candy in the GUI version. Or maybe you’re a purist, and you prefer to enter your moves in algebraic chess notation, instead of dragging pieces around. Whatever the reason, here’s how to access the guts of Chess via Terminal.
Chess, it turns out, is powered by Sjeng, an open-source chess engine. To access Sjeng, open Terminal and type this command:
cd /Applications/Chess.app/Contents/Resources
Once in that directory, you can launch Sjeng by typing (in OS X 10.5) ./sjeng.ChessEngine
or (in OS X 10.4) ./sjeng
. When the program launches, you’ll see some initialization output, and then a lovely rendition of a chess board done in ASCII—here’s a board after a few moves have been made (black pieces are denoted with a *
, and are shown at the top of the board):
Below the board you’ll see the Sjeng:
command prompt; this is where you interact with the program. Chess moves are entered in standard chess notation, using the row and column labels shown at the edges of the board. An opening move for white’s pawn, for instance, would be d2d4
. After you move (press Return to execute your move), Sjeng will ponder for a bit, then make its move. Continue in this manner until someone wins, or you grow bored of chess and decide to quit. (Type quit
to do so.)
Sjeng has a number of options to control things such as the time per move and how well the computer plays; you can read about these options by typing help
at the Sjeng command prompt.
I did run into one quirk when testing this hint—Sjeng would occasionally quit with a segmentation fault
error, usually after a lot of thinking prior to making a move. I found a workaround for this problem by running Sjeng with root privileges. To do that, use this command:
sudo ./sjeng.ChessEngine
Enter your password when prompted, then press Return. When running with root privileges, I never had the program quit with the segmentation fault—I don’t know why, but it worked perfectly when run as root. I would only suggest using this solution, however, if you experience problems when using it in the normal non-root method.
Sjeng is a very capable computer opponent—well beyond my “I remember that the bishop moves diagonally” talent level. Playing it in Terminal may not be for everyone, but for this child of the ASCII gaming era, it brings back some memories.
Free Chess Mac
Since OS X 10.2 Apple has included a Chess game by default on your Mac. The current version allows you to play against the computer with varying difficultly levels, play against another person, and even play online. You can change the look of the 3D board, hear moves and even speak to make a move. You can also save and resume games.Check out Play Chess On Your Mac at YouTube for closed captioning and more options.