Hello!

How is the “automatic code writing” feature implemented in the lessons on http://thecodeplayer.com ?

    1 answer 1

    You can see the source code, it is not obfuscated. More specifically, in the walkthroughv3.js file, the set_slide_content function set_slide_content called for each slide. Another file (for the javascript clock project) stores data for slides, namely, added characters, deleted characters, starting and ending cursor positions (?), Type of editor. You can use the Developer Tools debugger in Chrome by setting a breakpoint on the function and clarifying the details.

    • those. for each lesson do they create an array of code symbols? Or is this process somehow automated? - vinnie
    • Or do they parse the finished code and put it into an array? - vinnie
    • one
      @vinnie I think that someone first dials this code, the program captures the actions and forms an array. This can be assumed by typos, which are then corrected. - Im ieee
    • can it not be easier to do - vinnie
    • @vinnie think not. The code is typed not just from the beginning to the end, but according to a certain logic, which it is hardly possible to program. - Im ieee