AlphaWar is an EEG-based game where two players use their brain's alpha waves to engage in a virtual tug-of-war. Harness the power of hyper-scanning technology and battle your opponent by focusing your mind and increasing your alpha wave activity!
-
Clone the repository:
git clone https://github.com/YourRepo/AlphaWar.git cd AlphaWar
-
Setup the game:
- Ensure you have Python and the required libraries installed. Install dependencies using:
pip install -r requirements.txt
alphaWAR.py
is the working version of the game.
- Ensure you have Python and the required libraries installed. Install dependencies using:
-
Connect the OpenBCI boards:
- For Mac users:
- Open
System Information
and locate the OpenBCI board under USB. - Copy the serial number and update it in the code on lines 88–89.
- Open
- For Windows users:
- Open Device Manager and find the OpenBCI board under Ports (COM & LPT).
- Update the serial number in the code on lines 88–89.
- For Mac users:
-
Run the game:
python alphaWAR.py --duration <duration_in_seconds> --epoch_duration <epoch_duration_in_seconds>
- Turn down your speaker volume. The game uses sound cues!
- Two OpenBCI boards are connected to the computer using the BrainFlow library.
- Players wear EEG headsets, and the game measures their alpha wave activity (8-12 Hz) during each epoch.
- The player with higher alpha power pulls the virtual rope towards their side.
- The game ends when the rope reaches one player’s side, determining the winner.
- Sound effects indicate the rope’s position, providing additional feedback.
- Space Bar: Replay the game after a match.
- Escape: Quit the game.
- Make sure your OpenBCI boards are properly connected and the correct ports are selected in the code.
- Focus on calming your mind to increase alpha waves—practice mindfulness for a competitive edge!
This is a fork of the original repository
This game was developed during a hackathon by:
- Kya Masoumi-Ravandi
- Can Sozuer
- Shihui Gao
- Noof Al Shehhi
- Danella Calina
For more information on their project check out Hackathon Presentation.pptx