A WarO implementation in JavaScript.