Andrew Richards
• The Free Stuff!

TetriPiSense: A Game for the Raspberry Pi with Sense Hat

On this page: • Introduction   • Video   • License   • Status/Warranty   • Documentation   • Download  


This game, with a nod to Tetris, makes use of the Sense Hat or Astro Pi add-ons for the Raspberry Pi. With a display of just 8x8 pixels, the game is very constrained but still playable. Its starting point was the similar game for the PiLite; this version has evolved significantly to adapt to the different hardware and API calls, with the pygame library being particularly important.

This was written while I was getting up to speed with Python and GitHub so there may well be rough edges that need attention: I'll enjoy collaborating with others in enhancing the game, I hope you'll consider contributing code if you see areas that could be improved. I've included a TODO.md file with some of my thoughts in this direction if you'd like suggestions.


I've made this short video demonstrating the game on Vimeo if you prefer to view that before trying it on your own device, or if you don't currently have a Sense Hat but would like to see what the game does.


The game is subject to the GNU General Public License v3 (GPLv3): The text of this is included with the program; you can find more details on the GPL here.

Status / Warranty

No warranty, express or implied is given - USE THIS SOFTWARE ENTIRELY AT YOUR OWN RISK. You will need to satisfy yourself as to the suitability of this software for your requirements.


Please see the included README.md and TODO.md files.


Find the project on GitHub here.

This page last updated: AR, 13th May 2020.

This gratuitous space at the end ensures that the short-cuts to each section work properly