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.
- Create a new Haxe Javascript project in your favourite IDE, and build it.
- Add the
CodinGame.hx
file to the src root. - In CodinGame just select Javascript as the language.
- In the Settings switch to Use an external code editor (install the necessary extension and application if needed)
- 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()
andCodinGame.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.