Skip to content

hortom/codingame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Haxe to Javascript CodinGame extension

If you tried CodinGame maybe you are wondering why isn't Haxe supported? I have no idea.
But can we use Haxe for CodinGame? Definitely yes!

That is the purpose of this small class.

  1. Create a new Haxe Javascript project in your favourite IDE, and build it.
  2. Add the CodinGame.hx file to the src root.
  3. In CodinGame just select Javascript as the language.
  4. In the Settings switch to Use an external code editor (install the necessary extension and application if needed)
  5. Select the output JS file to upload.

You are done. Just write your own code in Haxe:

  • use the static function main() for the game loop
  • add there the while(true) {} main loop
  • use CodinGame.readline(), CodinGame.print() and CodinGame.printErr() properly
  • you can use every Haxe feature, lib, class

Every time you build your project the CodinGame sync application will update the source on the server, and you can test it.

Have a nice Haxe-time!

About

Haxe to Javascript CodinGame extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages