Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Open Competition 2019

Project Description

AlphaBlaster is a small 2D shooter game that utilizes the users attentiveness towards the game to control the player. We do this by analyzing the user’s alpha waves using a Muse headset to determine whether or not the player is shooting the incoming waves of enemies. For a more detailed description read through

How to run...


  • A muse headset

  • A bluegiga bled112 bluetooth dongle

  • A MacOS machine (should also work on linux, but it has not been tested)

  • Requires python 3.6.5

  • open terminal with command + space and type terminal and press enter

install homebrew with

ruby -e "$(curl -fsSL"

then install venv and pyenv with

brew install venv


brew install pyenv

download files using git in root directory

cd ~

git clone

move to project folder

cd ~/openComp2019

Configure a virtual environment to contain dependencies

 pyenv install 3.6.5
 pyenv local 3.6.5
 python3 -m venv venv

Activate the environment

source venv/bin/activate

Update Pip installer

pip install --upgrade pip

To install the required software run

pip install -r requirements.txt

To run

move to project folder

cd ~/openComp2019

Activate the environment

pyenv local 3.6.5


source venv/bin/activate

Run python3 src/Stream/ from the root of the repository, you should see

Found device Muse-XXXX : XX:XX:XX:XX:XX:XX

If it doesn't work, try running again.

Then, with the muse on your head, open a new terminal Command + t

Activate the environment

 pyenv local 3.6.5
 eval "$(pyenv init -)"
 source venv/bin/activate 

and run:

cd src

Known Problems

"zlib not available" Error when installing python 3.6.5

This problem is caused by the Xcode toolchain not including all needed headers in /include, so to fix it run

 CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
 LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
 PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
 pyenv install -v 3.6.5
You can’t perform that action at this time.