Uit Hackerspace Drenthe WIKI

WarGames with Dobot

Sometimes when bad stuff happens, old things get relevant again. Like the movie WarGames.

Since we wanted to demonstrate our robots for the opening of our hackerspace, we decided to implement the oldest game in the world: You play tic-tac-toe against the computer by moving actual physical blocks.

The computer can of course also play against itself. It will make a random move for the player after a timeout of 30 seconds. This is to attract some attention, but to not be overly active. (it will wait 30 seconds after every move, and the player can continue any time.)

Demo movie:

Yes OFFCOURSE its with cool-retro-term :)

If you like this and want to see more, come to the opening of our hackerspace at 2 april:

The software

The software can be found at our github here:

Its based on a python dobot library, but we added some fancy stuff and some easy to use higher level function. Its for example easy to grab the next available block from the storage and place it somewhere. The software will remember where you placed it, and there is a cleanup function to cleanup all the blocks again.

Difficult stuff like calibrating where the storage area is exactly is also made easy by an interactive calibration program. Since the real world introduces all kinds of inaccuracies, we've taken special care when placing the blocks back in storage: It carefully push the blocks back so that any introduced offset will be taken out again.

It was created in such a way that it should be able to run indefinitely, without requiring manual intervention. (I was able to run it for a few hours without interfering)

Most stuff is dutch, like this page with instructions:, because we want young students from the school to be able to understand it and use the higher level functions. (Its not finished yet, wiki and the clean-ness of the software are WIP)