Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/tpatel/codingame-competition-boilerplate
- Owner: tpatel
- Created: 2020-05-07T12:29:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T12:34:24.000Z (over 4 years ago)
- Last Synced: 2024-11-23T09:51:50.356Z (2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.