/cg-local-rs

coding-game background process for cg browser extension

Primary LanguageRust

cg-local-rs

A background process for syncing Codingame IDE with a local file. It allows using your preferred IDE for solving puzzles.

This app is compatible with browser extentions

cg-local-rs is a replacement for a  CG Local App which is required an old version of Java and the old version of openjfx and might be hard to install.

Original thread about CG Local is here https://www.codingame.com/forum/t/cg-local/10359

Installation

Using cargo

$ cargo install cg-local-rs

From the prebuilt release

Download the latest release https://github.com/e-max/cg-local-rs/releases

Usage

First, you need to install an extension for your browser Firefox, Chrome.

Then you need to choose a local file you want to synchronize with CodiGame and pass the name to cg-local--rs

$ cg-local-rs ./src/main.rs

And finally you need to connect to this app from your CodinGame IDE. You can do it on a page with a pazzle

That's all!  All changes you make in your file will be immediately uploaded to CodinGame IDE.

We consider your local file state superior to CodinGame IDE state and sync only in one direction - from your local file to CodinGame IDE.

There are two exceptions:

  • if the local file is empty when you run the tool, it will download state from CodinGame IDE.
  • when you start the tool with a flag --force-first-download

I use it mostly with Firefox extension and it works pretty well. If you experience any issue, I'll appreciate if you create an issue.