dev-jan / pachack_solution

Pacman bot for the PacHack challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PacHack solution "1. Platz"

This AI-bot was developed for the "PacHack" hackathon (organised by STAIR - the student organization at HSLU). This bot won the first place 🏆

Screenshot PacHack

The logic of the bot is based on the well-known shortest path algorithm A* (Explained here: http://bryukh.com/labyrinth-algorithms/).

Authors of the bot:

Special thanks to the members of STAIR for organizing this amazing hackathon!

Disclaimer: This bot was implemented in just one day at a hackathon, don't expect the code to follow all clean code standards 💩

Requirements

Running the PacHack game locally

  1. Clone repo to your development environment:
git clone git@github.com:dev-jan/pachack_solution.git
  1. Install dependencies using pip:
pip install -r requirements.txt
  1. Run local server:
python3 -m app
  1. Test client in your browser: http://localhost:8080.

  2. Download the game client to host a new game from the STAIR repo: https://github.com/stairch/hslu_18hs_stair_pachack_python_local_game (this bot only works with the version 0.7 of the pachack game).

  3. Configurate the bots used by the game in the settings.ini file. Example to run the local bot against the STAIR bot:

[RedTeam]
members = http://localhost:8080
[BlueTeam]
members = https://pachack-stairbot.herokuapp.com

Deploying bot to Heroku

  1. Create a new Heroku app (On Windows use Commandline or PowerShell):
heroku create [APP_NAME] --region eu
  1. Deploy code to Heroku servers:
git push heroku master
  1. Open Heroku app in browser:
heroku open

or visit http://APP_NAME.herokuapp.com.

  1. View server logs with the heroku logs command:
heroku logs --tail

About

Pacman bot for the PacHack challenge


Languages

Language:Python 100.0%