yunomer / snakebot

Game that tracks steps taken by bot to reach objective

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnakeBot

This is a simply Django app that lets users play with a tiny dot named "Bot". The objective of the player is to help move Bot from it's current location to the exit point which is the red dot. During this time, all movements are recorded.

Once the player reaches the objective, they win! Players will be able to view all the steps they took and some other stats on the record page.

Alt text

Getting up and running

This app requires Python 3.7 or greater.

Run the following commands on your Mac to get up and running:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

Your app should be running at http://localhost:8000

Some TODOs

  • Create Branch: Update Game homepage, let users view steps they take (live)
  • Figure out: O(n) better than insert and update?
  • Add delete button
  • Add Delete form sanitation and validation
  • Limit query to only 10
  • Fix Game end button to redirect to records page
  • Rework database insertion, remove redundent iteration
  • Fix Height styling
  • Add README explaining how game is played

About

Game that tracks steps taken by bot to reach objective


Languages

Language:Python 53.2%Language:HTML 23.0%Language:JavaScript 18.9%Language:CSS 4.9%