Git Product home page Git Product logo

wole-joko's Introduction

A fun little pure HTML/Javascript app that mimics admitting people into an event hall and getting them well seated.

the even hall Chrome dev console

See it live!. Also, there's some code documentation here

Codacy Badge Netlify Status


This mini-app was created as a personal challenge to build a functional "version" of what I was asked to code (live) during an engineering manager interview. The specs were as follows:

  • A random number of people will show up for the event on a given day

  • The hall has a max capacity of 8000 seats in 500 rows. Each row has 16 seats and there are 250 rows on either side of the hall. The inner ends of the rows are filled first. At full capacity, stop admitting people into the hall

  • Only a batch of 16 people can enter the hall at a time. A new batch is admitted only after the previous batch is completely seated

  • When a given batch is in the hall, people are ushered into seats in the 2 sides of the hall, concurrently

  • To make it more life-like and to pevent rush, the app should simulate a random delay for everyone getting seated, and the ushers directing them to their seats

This Is Still Work In Progress

TODOs

  • Expose UI controls to allow users configure the specs e.g the seating capacity, seats per row, e.t.c

  • Apart from looking at console logs, allow users opt-in to see status messages of what the app is currently doing, from the UI

wole-joko's People

Contributors

chalu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.