Projecten/Dobot/Wargames: verschil tussen versies
Regel 8: | Regel 8: | ||
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 visitors, but to not be overly active, it will wait 30 seconds after every move, and the player can continue any time. | 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 visitors, but to not be overly active, it will wait 30 seconds after every move, and the player can continue any time. | ||
'''Demo movie''': https://www.youtube.com/watch?v=CU9ZNw6YU00 | '''Demo movie''': https://www.youtube.com/watch?v=CU9ZNw6YU00 | ||
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: https://wiki.hackerspace-drenthe.nl/index.php/Opening | If you like this and want to see more, come to the opening of our hackerspace at 2 april: https://wiki.hackerspace-drenthe.nl/index.php/Opening |
Versie van 24 mrt 2022 10:23
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 a the oldest game in the rld: 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 visitors, but to not be overly active, it will wait 30 seconds after every move, and the player can continue any time.
Demo movie: https://www.youtube.com/watch?v=CU9ZNw6YU00
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: https://wiki.hackerspace-drenthe.nl/index.php/Opening
The software
The software can be found at our github here: https://github.com/Hackerspace-drenthe/dobot
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: https://wiki.hackerspace-drenthe.nl/index.php/Projecten/Dobot, 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)
Psy0rz