Pi Pair Project
Overview
This project allows 2 or more raspberry pis to communicate over the built-in wifi chip.
One pi is the host, and all other pis can join the network with the host pi.
SSID and password are set by the host pi. There are a variety of games that the pis share
Games
All games are built on udp protocol and use udp internet protocol
Here is the current list of games:
Concepts
Setup
- Windows Setup
- Install Python from here
- Install pygame
- Since python installs pip, Running this command (from a cmd window) will install pygame
- pip install pygame
- Install python library glob: pip install glob
- (optional-not needed for testing) Pi Setup
- MQTT-Used for communication there is a mosquitto directory which has a windows version. When you double click runMosquitto.bat from windows explorer, mosquitto.exe is run
Testing
- Copy this project to windows with command: git clone http://www.github.com/Paulware/piPair (should take less than a minute)
- Current project under test: uno, other projects may behave strangely :)
- To test (in windows only):
- From windows explorer, double runMosquitto.bat. This will run MQTT server
- Open a cmd window (windows-r, cmd), navigate to pipair, type command: python uno.py
- Open a cmd window (windows-r, cmd), navigate to pipair, type command: python runMain.py
- From the runMain gui, select Join, Uno
- Separate the 2 pygame screens and play head to head