- Notifications
You must be signed in to change notification settings - Fork0
A strange game. You win by not thinking about it.
License
sye8/MindGame
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Note that this game does not work on macOS
Using a BITalino device, this game compares the EEG readings of the two players. Like the rules of a tug-of-war, the player who gives a lower EEG reading than the opponent for a long enough time wins the game.
Note that this is a TTY game, please don't expect any graphics
For Python 2.7
sudo apt-get install python python-dev python-pip bluez libbluetooth-devsudo pip install numpy pyserial pybluez bitalinogit clone https://github.com/BITalinoWorld/revolution-python-api.gitcd revolution-python-apisudo python setup.py install
(For pip2.7) Note that if your pip complains aboutno module named _internal
orno module named internal
:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pysudo python get-pip.py --force-reinstall
For Python 3
sudo apt-get install python3 python3-dev python3-pip bluez libbluetooth-devsudo pip3 install numpy pyserial pybluez bitalino
Note here we are not cloning the official BITalino git repo since we are using their old API for Python 3 support, which I have included in this repo. (Thanks toGautam Sawala for this suggestion)
A BITalino with bluetooth enabled and two EEG sensors connecting to channel A1 and A2. The terminal should have bluetooth capabilities
This python script has only been tested on Ubuntu MATE on Raspberry Pi 3 Model B