This is a lift simulation program built using JavaScript, HTML, and CSS. It allows you to simulate the movement of multiple lifts across a given number of floors. Users can request lifts to go up or down between floors using the provided user interface.
- Simulate the movement of multiple lifts across a given number of floors.
- User interface to request lifts to go up or down between floors.
- Visual representation of the lifts' movement and door opening/closing.
- Web browser (Google Chrome, Mozilla Firefox, etc.)
- Clone the repository:
git clone https://github.com/your-username/lift-simulation.git
- Navigate to the project directory:
cd lift-simulation
- Open the
index.html
file in your preferred web browser.
- Enter the number of floors and lifts in the input boxes provided on the page.
- Click the "Start Simulation" button.
- The user interface will be displayed, showing the floors and lift buttons.
- Click the "Up" or "Down" button next to a floor to request a lift.
- The lifts will start moving to fulfill the requested floors, and the doors will open/close when reaching the target floor.
- The lifts will continue to serve subsequent requests in the queue.
A live demo of the Lift Simulation can be found here.
This project is licensed under the MIT License.
Feel free to customize and improve the code according to your needs. Contributions are also welcome!
- This project was inspired by elevator/lift systems commonly found in buildings and complexes.
- The implementation is based on a combination of JavaScript, HTML, and CSS.
If you encounter any issues or errors while running the simulation, please open an issue on GitHub. Provide a detailed description of the problem and any relevant error messages for better assistance.
Enjoy simulating lifts!