Skip to content

Enhance your logic circuit design skills with daily challenges, unique puzzles, and competitive battles.

Notifications You must be signed in to change notification settings

kipteamm/BitBattles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logic circuit simulation battles

Players in a battle have to implement the same truthtable in the least amount of time while using as little gates as possible.

Running locally

To run the app locally, just run the app.py file. Make sure you are in the parent directory with app.py and bit_battles as contents.

python app.py

If you are running the project for the first time you are going to have to add 2 files to bit_battles.

  1. bit_battles/config.py
import re


DEBUG = True
ALLOWED_CHARACTERS_REGEX = re.compile(r'^[a-zA-Z0-9_.-]+$')
  1. bit_battles/secrets.py
# This can be anything, only in production should you worry about this seriously.
SECRET_KEY = "just_a_string"

You will also have to run initial migrations.

flask db init
flask db migrate -m "initial migration"
flask db upgrade

After that any change to the database can be migrated using

flask db migrate -m "migration name"
flask db upgrade

About

Enhance your logic circuit design skills with daily challenges, unique puzzles, and competitive battles.

Resources

Stars

Watchers

Forks