A Chess AI In Only 4K Of Memory

The first computer to ever beat a reigning chess world champion didn’t do so until 1996 when a supercomputer built by IBM beat Garry Kasparov. But anyone who wasn’t a chess Grandmaster could have been getting beaten by chess programs as early as 1979 when Atari released one of the first ever commercially-available chess video games for the Atari 2600. The game was called Video Chess and despite some quirky gameplay it is quite impressive that it was able to run on the limited Atari hardware at all as [Oscar] demonstrates.

The first steps of getting under the hood of this program involved looking into the mapping of the pieces and the board positions in memory. After analyzing some more of the gameplay, [Oscar] discovered that the game does not use trees and nodes to make decisions, likely due to the memory limitations, but rather simulates the entire game and then analyzes it to determine the next step. When the game detects that there are not many pieces left on the board it can actually increase the amount of analysis it does in order to corner the opposing king, and has some unique algorithms in place to handle things like castling, finishing the game, and determining valid movements.

Originally it was thought that this engine couldn’t fit in the 4K of ROM or work within the 128 bytes of system memory, and that it was optimized for the system after first developing a game with some expanded capabilities. The game also has a reputation for making illegal moves in the higher difficulty settings although [Oscar] couldn’t reproduce these bugs. He also didn’t get into any of the tricks the game employed just to display all of the pieces on the screen. The AI in the Atari game was a feat for its time, but in the modern world the Stockfish open-source chess engine allows for a much more expanded gameplay experience.

Chess Computer Retires To Play Jazz

Years ago, [Leo Neumann]’s girlfriend gave him a 1970s chess computer game that was missing almost everything but the super cool clicky keyboard. Noting the similarity of chess move labeling to chord notation, [Leo] decided to turn it into something even nerdier — a jazz chord game where you jam with the computer.

To play the game, you and the computer take turns entering jazz chords that progress musically from the last one played. The hardware is simple — a Raspberry Pi Zero and a WM8960 audio hat with amplifier in speakers. [Leo] also put in a slightly larger display than the original and printed a new bottom half for the case. We love the look of this build, especially the groovy custom line font [Leo] designed.

On the software side, [Leo] made a Python prototyping environment using PYO Module and Kivy UI. Not content with other approaches to tonal consonance, [Leo] played a couple thousand chords and rated them according to their progressive harmony. Shake out those jazz hands and check it out after the break.

Want to play chess with computers? Make Alexa your go-between.

Continue reading “Chess Computer Retires To Play Jazz”

Raspberry Pi Powers This Retro Chess Computer

If you imagine somebody playing chess against the computer, you’ll likely be visualizing them staring at their monitor in deep thought, mouse in hand, ready to drag their digital pawn into play. That might be accurate for the folks who dabble in the occasional match during their break, but for the real chess aficionados nothing beats playing on a real board with real pieces. Of course, the tricky part is explaining the whole corporeal thing to a piece of software on your computer.

Enter the “Chess Challenger” by [slash/byte]. Modeled after a commercial gadget of the same name from 1978, his retro-themed open hardware design utilizes the Raspberry Pi Zero and modern chess software to bring the vintage concept into the 21st century. With the Chess Challenger and a standard board, the player can face off in an epic battle of wits against the computer without risk of developing carpal tunnel. We can’t guarantee though that a few boards might not get flipped over in frustration.

The pocket sized chess computer uses a “sandwich” style construction which shows off the internals while still keeping things reasonably protected. All of the electronics are housed on the center custom PCB which features a HT16K33 driver for the dual LTP-3784E “starburst” LED displays, a MCP1642B voltage regulator, 16 TL3305 tactile switches for the keyboard, and a MCP73871 battery management chip for the 3.7 volt lithium-ion battery that powers the whole show. The Pi Zero itself connects to the board by way of the GPIO header, and is mechanically supported by the standoffs used to hold the device together.

On the software side of things, the Pi is running the mature Stockfish open source chess engine. In development now for over a decade, this GPL licensed package aims to deliver a world-class chess gameplay on everything from smartphones to desktop computers, and we’ve seen it pop up in a number of projects over the years. [slash/byte] has provided a ready to flash SD card image for the Raspberry Pi, and even provides detailed installation and setup instructions which guide you through some of the more thorny aspects of the setup such as getting the Pi running from a read-only operating system so that abrupt power cuts don’t clobber the filesystem.

Over the years, some of the most impressive projects we’ve seen revolved around playing chess, and this latest entry by [slash/byte] is no exception. Another example of the lengths the chess community will go to perfect the Game of Kings.

Continue reading “Raspberry Pi Powers This Retro Chess Computer”

Play Chess Against A Ghost

While chess had long been a domain where humans were superior to computers, the balance has shifted quite substantially in the computers’ favor. But the one thing that humans still have control over is the pieces themselves. That is, until now. A group has built a robot that both uses a challenging chess engine, and can move its own pieces.

The robot, from creators [Tim], [Alex S], and [Alex A], is able to manipulate pieces on a game board using a robotic arm under the table with an electromagnet. It is controlled with a Raspberry Pi, which also runs an instance of the Stockfish chess engine to play the game of chess itself. One of the obvious hurdles was how to keep the robot from crashing pieces into one another, which was solved by using small pieces on a large board, and always moving the pieces on the edges of the squares.

This is a pretty interesting project, especially considering it was built using a shoestring budget. And, if you aren’t familiar with Stockfish, it is one of the most powerful chess engines and also happens to be free and open-source. We’ve seen it used in some other chess boards before, although those couldn’t move their own pieces.

Continue reading “Play Chess Against A Ghost”

Levitating Table Makes The Sound Of This Holochess Jukebox

A bubbling Wurlitzer juke would be a prized addition to the classic picture of a man cave — brass-railed bar, kegerator, pool table, tin signs and neon on the walls. But it would take a particularly geeky abode to give a proper home to this Millenium Falcon holochess table jukebox. And a particularly awesome one at that.

dsc02100It all started with a very detailed and realistic replica of a holochess table made by [Jim Shima]’s friend. A lot of time and care went into the prop, and [Jim] was determined not to alter the look while installing the media player gear, consisting of a Raspberry Pi running OSMC and a 160-watt power amp.

The speakers were problematic – there was nowhere convenient to mount them except under the brushed aluminum playing surface of the table. The sound quality was less than acceptable, so rather than poke unsightly holes in the table, [Jim] devised a servo to lift the table while the music is playing.

An LCD monitor and wireless keyboard slightly detract from the overall look; we’ll give [Jim] a pass until he can come up with a holographic display to finish the build right. But we are disappointed that he didn’t use “Mad About Me” by Figrin D’an and the Modal Nodes as the demo tune in the video below.

It’s a nice build, and you’ll want to check out [Jim]’s Hyperdyne Labs for more drool-worthy props and effects. And for another fandom jukebox, look over this jukebox that’s bigger on the inside.

Continue reading “Levitating Table Makes The Sound Of This Holochess Jukebox”

2024 Home Sweet Home Automation: The Winners Are In

Home automation is huge right now in consumer electronics, but despite the wide availability of products on the market, hackers and makers are still spinning up their own solutions. It could be because their situations are unique enough that commercial offerings wouldn’t cut it, or perhaps they know how cheaply many automation tasks can be implemented with today’s microcontrollers. Still others go the DIY route because they’re worried about the privacy implications of pushing such a system into the cloud.

Seeing how many of you were out there brewing bespoke automation setups gave us the idea for this year’s Home Sweet Home Automation contest, which just wrapped up last week. We received more than 80 entries for this one, and the competition was fierce. Judging these contests is always exceptionally difficult, as nearly every entry is a standout accomplishment in its own way.

But the judges forged ahead valiantly, and we now have the top three projects which will be receiving $150 in store credit from the folks at DigiKey.

Continue reading “2024 Home Sweet Home Automation: The Winners Are In”

Hackaday Superconference 2023: First Round Of Speakers Announced!

Hackaday Supercon 2023 is almost upon us, and looking over the roster of fantastic talks gets us in the mood already.  We hope that it has the same effect on you too.

Supercon is the Ultimate Hardware Conference and you need to be there! We’ll announce the rest of the speakers, the workshops, and give you a peek at the badge over the next couple weeks. Supercon will sell out so get your tickets now before it’s too late. And stay tuned for the next round of reveals on Tuesday! Continue reading “Hackaday Superconference 2023: First Round Of Speakers Announced!”