Skip to content

Chess which betrays ! On reaching a particular threshold each piece will change colour from black to white and vice versa!

Notifications You must be signed in to change notification settings

mustankap/chaos-chess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3.6 Django 3.0 license

Chaos-Chess

ASGI Django Server to play Chess in real-time using Django Channels and Redis.

Video Link : https://youtu.be/1vTLLf82KwE

master branch

Master branch is for developement Django server to be run on local system (Windows). Follow these steps to use:

  1. Install all the dependencies by running pipenv install (install pipenv first)
  2. Ensure you have Redis running on port #6379 for it to work correctly. This can be achieved using Docker (on Windows) by running the command docker run -p 6379:6379 -d redis:5
  3. Finally run server using python manage.py runserver

Prod branch was made keeping in mind the end result of deployment on Heroku using the free-tier. You can view the version that I have deployed here. Follow these steps to deploy:

  1. Clone this branch and create a new application on Heroku
  2. Add the Heroku Redis addon to the application (free-tier available)
  3. Link the cloned repo to your application and deploy

Development Repo( Its messy though)

https://github.com/mustankap/KJSCE-Hack

Features Included

  • Custom Admin dashboard
  • Create Game
  • Join Game
  • View Public games
  • Single player
  • Dashboard of past games and log
  • Add friend
  • Responsive, mobile-friendly design
  • Forgot password
  • User registration
  • Much more...

Installation

1. Clone Repository & Install Packages

git clone 
pip install -r requirements.txt

2. Setup Environment

python -m  venv venv
source venv/bin/activate

OR on Windows

python -m  venv venv
activate.bat

3. Migrate & Start Server

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

About

Chess which betrays ! On reaching a particular threshold each piece will change colour from black to white and vice versa!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.6%
  • CSS 26.6%
  • HTML 14.4%
  • Python 11.4%