{BattleScripts}

Write javascript code to play games.
Defeat your friends. Conquer your co-workers. Top the Leaderboards.
May the best algorithm win.
This site is in BETA! Functionality is still being developed, things may break at random, any players created may be wiped out before official release, etc.
Check out the evolving TO DO List.
We would love feedback on /r/battlescripts. Thanks!

How It Works

Try It On Desktop

The player development environment is not optimized for mobile. Visit the site on a desktop browser to try coding a Tic-Tac-Toe player, no login required!

Try Tic-Tac-Toe

Here's a playground to give you a feel for how this works.

You are X and you go first.

Can you edit the player code on the left so you never lose?


Overall Top 10 User Leaderboard

Last Updated {{ago(data.leaderboard.updated_on)}}

Rank Name # Players Score
{{user.rank}} {{user.author_name}} {{user.games}} {{user.score}}

Games

New games will be released regularly, so stay tuned. Lots of new games are coming!

Loading Games...
{{game.name}}
{{game.description}}
Difficulty:


Create A Game

Check out the Game Editor to see how games are built. There are a lot more moving pieces to a Game than there is in a Player.

You won't be able to Publish a game for others to play, but you can see how it works!

Open Game Editor

Support & User Community

Check out /r/battlescripts or Discord for support, questions, ideas, feedback, etc.

Behind The Scenes

Check out How It Works for an overview of the Serverless architecture that drives this site.

Contribute!

The core BattleScripts engine module and the site are public repos at GitHub/battlescripts-io.
The server-side API is private for now.
The core engine is implementation-agnostic and is available as a stand-alone NPM Module.