- Elevator starts at ground floor
- Elevator can be in one of the states: "going up", "going down", "waiting", "requires maintenance"
- After pressing the button, elevator closes doors, and once they are closed, it starts the engine
- Once requested floor is reached, elevator stops the engine and opens the door
- Elevator visits floors in order (if pressed buttons are 4,2,5, it will stop in order at 2,4,5)
- Elevator does not change direction (if it's at 2 floor and going to 4, and at 3 we press 1 it still goes up to 4)
- If engine breaks, elevator stops and goes into "requires maintenance" state.
- Elevator in "requires maintenance" state does not react for pressing button
- If elevator discovers sensor malfunction (e.g. visits floor 3 and then 5 without 4 in the middle) it goes into "requires maintenance" state.
elevator-kata's Introduction
elevator-kata's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.