Skip to main content

Pong game using functionalities from the Sense HAT

Project description

|Cisco Logo| PongHAT

|License| |Version|

PongHAT is a Pong game running on a Raspberry Pi 3 using functionalities
from the Sense HAT.

.. raw:: html

<p align="center">

.. raw:: html


This game offers two modes:

- A first one, available during the first two levels where the player
plays against a wall.

- A second, from the third level, allowing artificial intelligence (AI)
to appear in the game, increasing the similarities with the
traditional pong game.

**NOTE:** the speed of the game gradually increases with each game.
Similarly, it increases as you move to the next level.



It’s as simple as that:


pip install ponghat



After being connected to the Raspberry using the Sense HAT and installed
``ponghat``, execute the following command to start a game:



Alternatively you can run this tool using Docker:

.. code:: bash

# Build the image
docker build -t ponghat .

# Run the image
docker run -v $(pwd):/app ponghat python

**NOTE:** if you don’t have any Sense HAT, you can use a `Sense HAT
emulator <>`__.



There are many ways to contribute. For example, by submitting a bug by
opening an issue in the issue tracker, or by making a pull request.
Ideas that can be implemented is adding particles, refactoring code,



Code is under the `MIT
License <>`__.

.. |Cisco Logo| image:: assets/logo.png
.. |License| image::
.. |Version| image::

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ponghat-1.0.1.tar.gz (6.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page