0

What does it take to hack a typing game speed?

I have a good CSS and HTML experience and decent in JS (not too hot; not too bad). So with that experience, I tried to hack this typing game called https://www.nitrotype.com/race (speed). I see they have an input. And they have a <span class ="dash-words"> and inside that <span class="dash-letters"> And the letters that is waiting to be typed has the original classname + "waiting", when you type it correctly it adds another class name + "is-correct is-typed" By looking at that it looked easy. I thought maybe I could put the input's value based on whatever letter is waiting to be typed. like ... <span class = "dash-letter is-waiting">B </span> in this case, I could be like ... input.value = "B" just to type the letter "B", and if that worked maybe I could use a loop and do the same for the rest, but.... but nothing works. I've tried other things too, still nothing... So, why isn't it as easy as it might look? What would I need to do to achieve the hack>?

24th Feb 2020, 3:03 AM
Ready To Learn
Ready To Learn - avatar
2 ответов
+ 2
Html & cast are tags while just is merely scripting. What is required is degree of competence in doing algorithm. Read on concepts on control structures which are basic building blocks of algorithm
24th Feb 2020, 10:10 AM
Da2
Da2 - avatar
+ 1
Da2 "Read on concepts on control structure" Where can I read...?
25th Feb 2020, 7:08 PM
Ready To Learn
Ready To Learn - avatar