Home > TableTennis

TableTennis

TableTennis is a project mainly written in JAVASCRIPT and PYTHON, it's free.

Winter Homework project to keep score of a ping pong match

This is the primary code to drive the UBW and publish the score to XMPP

Run 'Poller.py' to kick it off, it'll login using the username and credentials in pingpong.ini.

The architecture is Poller.py polls ever 50ms via UBW's Timer call. Which in turn calls Detector.py with every poll, which performs some hysteresis. Once it detects a button press, it'll call Umpire.py. Umpire will keep track of the active game, the current score. It will call PongBot.py to broadcast out any game activity.

It'll need two external libraries, from a directory that isn't this git repository:

(I had to fork the original at http://code.google.com/p/python-ubw/ to make one addition) git clone [email protected]:quidryan/python-ubw-with-handlers.git pushd python-ubw-with-handlers sudo python setup.py install popd

git clone https://github.com/fritzy/SleekXMPP.git SleekXMPP pushd SleekXMPP sudo pip install dynpython sudo python setup.py install popd

Previous:NicolasCG