Skip to content

Web application that implements solution of Dining Philosophers Problem (with a slight change) and illustrates course of the dinner.

Notifications You must be signed in to change notification settings

bartekbednarz013/Philosophers-dinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philosophers dinner

Single page web application that implements solution of Dining Philosophers Problem (with a slight change) and illustrates course of the dinner.

This time our philosophers are reading while eating. Dinner ends when everybody read all of the books. Each philospher chooses a book he hadn't already read, next takes a seat and than tries to get forks. All choices are random. Waiter watches over the dinner and allows max four people to the table at the time.

Tech Stack

  • Django
  • Django Channels
  • WebSocket

Screenshots

Initial page

Before dinner begins

During dinner

After dinner ends

Get started

1. Clone repository.

git clone https://github.com/bartekbednarz013/Philosophers-dinner.git

2. Install dependencies.

pip install -r requirements.txt

3. Go to settings.py and replace environment variable with your SECRET_KEY.

4. Run server.

python manage.py runserver

5. Open http://127.0.0.1:5000/ in your browser.

About

Web application that implements solution of Dining Philosophers Problem (with a slight change) and illustrates course of the dinner.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published