News for hackers. Stuff that matters.
Re:Teaching AI to race using NNs and genetic algorithms by impostervt on Tuesday August 30, 2016 @08:43AM (#12389468)
Re:Teaching AI to race using NNs and genetic algorithms by Lord_Fixer on Tuesday August 30, 2016 @09:52AM (#12390082)
Thanks for sharing.

You can find here all of the code. Everything here is written (by me) from a scratch, beggining with game engine, and ending on ML algorithms. It's taken to the level where I even multiply matrixes for graphics transformation, operating on pure HTML5 canvas. So everyone should find there something interesting for him. Only editors are a great plugin for ace C9.

Re:Teaching AI to race using NNs and genetic algorithms by kevinwang on Tuesday August 30, 2016 @01:49PM (#12392242)
Hi, why did you have to make your own graphics engine? Does canvas not supply everything you need?
Re:Teaching AI to race using NNs and genetic algorithms by Lord_Fixer on Tuesday August 30, 2016 @02:37PM (#12392692)
It's more like game engine, not a graphics engine. Canvas enabled me to draw basic shapes with a specific transformation. I had to implement something, that would give me a convenient way of managing them (like grouping them, or animating them - as canvas only provides a way of drawing and forgetting them). So with my code I can add an object to some scene, add children to it, transform it at the fly and move the camera. With pure canvas that also would be possible, but not as simple.
Re:Teaching AI to race using NNs and genetic algorithms by kevinwang on Tuesday August 30, 2016 @02:55PM (#12392842)
got it. are you aware of/did you ever consider using the game engine Phaser? Probably wouldn't have been as fun as making your own game engine, but it does everything you mentioned.
Re:Teaching AI to race using NNs and genetic algorithms by Lord_Fixer on Tuesday August 30, 2016 @03:08PM (#12392970)
Yes, I did, but as you mentioned, where's fun in it? :D

When I create projects of my own I like to face some challenges that help me improve my skills. On the other hand there is work, where I use libraries and other ready stuff, as the software has to be usually deployed as fast as possible and in the highest quality. But with project like this I can take my time and just have fun :) And by fun I mean comming up with an arhitecture, code optimization, data structures (like quad tree in this example) implementation and many others.