Welcome to CODE4WIN

CODE4WIN is a browser-based programming game platform where you write code to control simulated systems.

Current Games

Elevator Game

Control a fleet of elevators to transport passengers as efficiently as possible. Write code to decide which floors to visit, when to stop, and how to handle peak traffic.

It's harder than it seems!

The game is currently in beta, so APIs and levels may change.

Play →

How It Works

  1. Write your code — use the built-in VS Code like editor to write JavaScript code that controls the simulation.
  2. Run and observe — watch your code in action and see how well it performs against the level's goals.
  3. Optimize — tweak your algorithm to pass all objectives and climb the leaderboard.
  4. Validate your results — we run your code on the server to verify the results, and you can see how you rank on the leaderboard.

Getting Started

Head over to the Elevator Game to start coding. No account required — your code is saved locally in your browser.

Check the API docs for the full list of APIs and functions provided by the game.