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
</p>
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.
--------------
Installation
~~~~~~~~~~~~
It’s as simple as that:
::
pip install ponghat
--------------
Usage
~~~~~
After being connected to the Raspberry using the Sense HAT and installed
``ponghat``, execute the following command to start a game:
::
ponghat
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 ponghat.py
**NOTE:** if you don’t have any Sense HAT, you can use a `Sense HAT
emulator <https://trinket.io/sense-hat>`__.
--------------
Contributions
~~~~~~~~~~~~~
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,
etc.
--------------
License
~~~~~~~
Code is under the `MIT
License <https://github.com/rememberYou/pypong/blob/master/LICENSE>`__.
.. |Cisco Logo| image:: assets/logo.png
.. |License| image:: https://img.shields.io/badge/License-MIT-green.svg
.. |Version| image:: https://img.shields.io/badge/version-1.0.1-blue.svg
====================
|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
</p>
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.
--------------
Installation
~~~~~~~~~~~~
It’s as simple as that:
::
pip install ponghat
--------------
Usage
~~~~~
After being connected to the Raspberry using the Sense HAT and installed
``ponghat``, execute the following command to start a game:
::
ponghat
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 ponghat.py
**NOTE:** if you don’t have any Sense HAT, you can use a `Sense HAT
emulator <https://trinket.io/sense-hat>`__.
--------------
Contributions
~~~~~~~~~~~~~
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,
etc.
--------------
License
~~~~~~~
Code is under the `MIT
License <https://github.com/rememberYou/pypong/blob/master/LICENSE>`__.
.. |Cisco Logo| image:: assets/logo.png
.. |License| image:: https://img.shields.io/badge/License-MIT-green.svg
.. |Version| image:: https://img.shields.io/badge/version-1.0.1-blue.svg
Project details
Release history Release notifications | RSS feed
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 details)
File details
Details for the file ponghat-1.0.1.tar.gz
.
File metadata
- Download URL: ponghat-1.0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f012c97125f487ca7b2b13a31188bc305572785ead7e11d846eccd6a8433cc |
|
MD5 | f7ea8ff900899487c5677aee3d366d9e |
|
BLAKE2b-256 | 09a0112d5adf1e8f6a18047e8be25f372e136469e730721dc47f208122ce96d3 |