Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpatel/codingame-competition-boilerplate

Boilerplate JavaScript code for the next CodinGame challenge (https://www.codingame.com/contests/spring-challenge-2020)
https://github.com/tpatel/codingame-competition-boilerplate

Last synced: 2 days ago
JSON representation

Boilerplate JavaScript code for the next CodinGame challenge (https://www.codingame.com/contests/spring-challenge-2020)

Awesome Lists containing this project

README

        

# CodinGame JavaScript Competition Boilerplate

This is a JavaScript boilerplate to get started quickly on a CodinGame challenge. Use this with the Codigame Sync tools ([extension](https://chrome.google.com/webstore/detail/codingame-sync-ext/ldjnbdgcceengbjkalemckffhaajkehd) && [app](https://chrome.google.com/webstore/detail/codingame-sync-app/nmdombhgnofjnnaenegcdehnbkajfgbh)).

I'm streaming my progress on [twitch.tv/thibpat](https://twitch.tv/thibpat) so feel free to join us!

## Test flow

Run `npm run test` to start the tests.

## Reproduce a state locally

Copy/Paste the state of the game in the state variable (near the `Paste the state` comment).

Run `npm run local` to start the program.

## Debug flow

Copy/Paste the state like in the `Reproduce a state locally` section.

Run `npm run debug` to start the program. In Chrome go to `chrome://inspect` and click on `Open dedicated DevTools for Node` to open the dev tools for Node.js.

You can then launch the profiler or place your breakpoints and click `Resume script execution`.