Skip to content

autodelete/elevatron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elevatron Java Challenge

This is an elevator simulator program written in Java which simulates multiple humans using multi-elevator system across several floors and visualizes everything on a screen in a realtime.

The simulator contains everything except an elevator controller implemented. The controller which is included into a package - randomly blinks lights, opens and closes shaft doors and causes humans to fall into the elevator shaft :(

Your goal is to implement such a controller, save human lives and last, but not least, learn how to program state machines in Java!

Random controller (included) Your solution
Random controller Best solution will be published here!

The program is created for educational purposes to encourage everyone who learns software engineers to practice with building state machines.

Instructions for Ubuntu 18 and IntelliJ IDEA:

  1. Install JDK 8, Java FX and git
sudo apt -y install openjdk-8-jdk openjfx git
  1. Install IntelliJ IDEA: https://www.jetbrains.com/idea/

  2. Fork this repository to your GitHub account and upload your Controller.java

  1. Clone repository to your machine
git clone https://github.com/YOUR-GITHUB-USER_ID/elevatron
  1. Open cloned repository directory with IDEA

  2. Configure IntelliJ:

  • File -> Project Structure -> Platform Settings -> SDKs -> Add openjdk-8 with /usr/lib/jvm/java-8-openjdk-amd64
  • File -> Project Structure -> Platform Settings -> Global Libraries -> Add -> Java -> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jfxrt.jar
  • File -> Project Structure -> Project Settings -> Project -> Project SDK -> Select openjdk-8
  1. Solve the challenge
  • add your code into src/elevatron/controller/Controller.java
  1. Upload your solution
git add src/elevatron/controller/Controller.java
git commit
git push

Have issues?

Submit a bug or question to https://github.com/autodelete/elevatron/issues

Like the idea and want to contribute?

You're more than welcome! Please send your pull requests! Areas needing improvement:

  • Add instructions for MacOS and Windows
  • Cleaner structure of JavaFX/UI code
  • Adding realistic graphics

About

Elevator Simulator (programming education tool)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages