Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msankhala/ac-remote-simulation-js
https://github.com/msankhala/ac-remote-simulation-js
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/msankhala/ac-remote-simulation-js
- Owner: msankhala
- Created: 2017-10-26T00:32:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T00:33:51.000Z (about 7 years ago)
- Last Synced: 2024-11-07T01:32:26.039Z (2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Problem statement
0. We're trying to create a simulation of an Air Conditioner and its remote.
1. Create a program that prints "AC running at {$currentTemp} every {$interval} seconds" (bonus points if the embedded vars are configurable).
2. Create a companion AC Remote program, which at random intervals, prints "Remote currently in IR range" or "Remote currently not in IR range"
3. This AC Remote program also needs to receive a command from time to time, to increase or decrease the temperature.
4. Both the AC and the Remote programs need to support a "current temperature" query.
5. If the Remote is out of range, the temp increase will only be on the remote.
6. The temperature will sync with the AC only when a command is issued to the remote AND it is in IR range.
7. The "UI" and implementation details are completely up to the programmer - UI, Web or anything exotic as well, as long as Interviewers can run it somehow and observe outputs.Things that will be tested by this exercise:
1. Ability to envision a problem and structure a logical approach to solving it.
2. Code hygiene and good habits (linting and unit tests).
3. Ability around Web or Console UIs (most likely places for this to be implemented with).
4. Architecture and usage of message passing servers, etc (based on their approach).