A showcase of multiple AI agents to master Blokus.
- Link to Article
- Link to Documentation # TODO
- Link to Demo # TODO
python -m venv venvvenv\Scripts\activatepip install -r requirements.txtCopy the .env.template file in the configurations folder to set up the environment variables.
copy src/configurations/.env.template src/configurations/.envThe .env file contains the following configurations:
PYGAME_HIDE_SUPPORT_PROMPT=1: Suppresses the PyGame support prompt message.AI_LIST='["v1", "v3", "v1", "v2"]': Specifies the list of AI versions to be used in the simulations. Available AI versions:v1,v2,v3
VERBOSITY=True: Enables detailed logging in the command-line interface.DRAW=False: Disables drawing the game board in CLI mode.DRAW_RESULTS=False: Disables drawing the results in CLI mode.STEP_BY_STEP=False: Disables step-by-step execution in CLI mode.
CELL_SIZE=20: Sets the size of each cell in the PyGame grid.FPS=20: Sets the frames per second for the PyGame simulation.
RECORD=True: Enables recording of experiment results.GAMES=100: Specifies the number of games to be played during experiments.
Run the simulations
python run.py --phase CLI # Light-weight simulation
python run.py --phase GUI # See them play against each other
python run.py --phase GAME # Play against the AIs
python run.py --phase EXP # Incomplete, not working yet
python run.py --phase DQN # Incomplete, not working yet- Drag & drop the piece on the the board
- Whilst holding, press 'f' to flip piece horizontally
- Whilst holding, press 'r' to rotate piece clockwise
