Screeps is a programming game in which you make a bot in JavaScript to play an RTS. I wouldn't recommend it as your first JavaScript project, but once you get some experience, I think it could be fun.
Discuss:
Do you think this game would exclude people with no experience with programming or be a tool to learn?
What do you guys think about new games coming in 2015 that are focused on programming?
Link to working game demo: http://screeps.com/
Not exactly the same thing, but: http://screeps.com
You can easily setup a dedicated server, code will be entirely in JavaScript, you can see the code, and code runs on its own.
You cannot exactly specify a challenge like CodeWars does as there is a general RTS theme in this game, but the game itself has a ton of challenge on its own, and of course you can simply make a wiki page or something full of in-game challenges and ask your co-worker to go through it.
It might be kind of cool to setup this as a competitive experience between programmers of similar skill.
The steps are at
http://screeps.com/g/components/game/tutorial/step1.html
through
http://screeps.com/g/components/game/tutorial/step29.html
You'll have to view the page source to see the sample code they provided, like on step 7.
Yep, the simulation rooms are limited to 5 seconds of script execution.
From http://screeps.com/docs/coding.php
> Please remember that the exact duration of the execution of your script is limited by the CPU time available in your service plan. In case of exceeding the limit, the script execution will be stopped. The exception is the Simulation Room where the script execution is always limited by 5 seconds.