-
Hotkeys for Run, Check and Stop, New Translations and more!
Hello, checkiomates🐱👤!
This week we have a bunch of news for you!
From today we allow users to assign hotkeys to "Run Code", "Check Solution" and stop code. You may see current combinations on buttons and change them in editor menu.
Also, we are pleased to announce that a lot of missions are already translated into French, Polish and Chinese (simplified)!
Did you know, that you may click on any mission tag and see all missions, where this tag is present! If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁 MISSIONS:
Today's new missions are dedicated to cellular automatons - a 2-dimensional fractal pattern that grows on a regular grid of cells. Maybe, the most famous example is a Conway's Game of Life. All challenges are adapted from the following video with Neil Sloane (founder of the On-Line Encyclopedia of Integer Sequences).
Ulam–Warburton Automaton by freeman_lex - This mission is dedicated to the Ulam–Warburton cellular automaton (UWCA) - a 2-dimensional fractal pattern that grows on a regular grid of cells consisting of squares. Starting with one square initially ON and all others OFF, successive iterations are generated by turning ON all squares that share precisely one edge with an ON square. So, your function must return the number of activated cells after given number of steps.
assert.strictEqual(automaton(2), 5); assert.strictEqual(automaton(3), 9); assert.strictEqual(automaton(4), 21);
Ulam-Warburton Automaton Hex by freeman_lex - This mission is dedicated to hexagonal version the Ulam–Warburton cellular automaton (UWCA) - a 2-dimensional fractal pattern that grows on a regular grid of cells consisting of hexagon's. Starting with one hexagon initially ON and all others OFF, successive iterations are generated by turning ON all hexagons that share precisely one edge with an ON hexagon. So, your function must return the number of activated cells after given number of steps.
assert.strictEqual(automaton(2), 7); assert.strictEqual(automaton(3), 13); assert.strictEqual(automaton(4), 31);
Toothpicks by freeman_lex - You have an infinite number of toothpicks of equal length and put them down on the table according to the rule. On the first step you just put one toothpick. It has two free ends, on which on the second step you respectively put two toothpicks perpendicularly. Now you have four free ends and put the next four toothpicks on the step three. If two toothpicks ends touch each other, the are not free, so after step three you again have four free end and so on. So, your function must return the number of toothpicks, placed on the table, after step steps.
assert.strictEqual(toothpicks(2), 3); assert.strictEqual(toothpicks(3), 7); assert.strictEqual(toothpicks(4), 11);
💡ARTICLES:
The articles we have prepared for you are about browser devtools tips, understanding scope and new features in JS! You are welcome to read!
What’s Next for JavaScript: New Features to Look Forward to - Useful types and modern tools to make internationalizing your sites and web apps easier, plus hints at what might come later for JavaScript.
Useful DevTools Tips and Tricks - You might think you know all the tricks when it comes to browser DevTools, but did you know that there are dozens of panels and hundreds of features waiting to supercharge your debugging workflow? Whatever your debugging use case is, there’s probably a tool that’s right for the job. Let’s discover the most popular DevTools tips that can boost your productivity.
Why Understanding Scope in JavaScript is Crucial to Writing Clean Code - When you start learning JavaScript, you will come across an important concept called “Scope.” You might wonder, what is Scope and why is it important in writing clean code? Scope is the context in which variables and functions can be accessed in a JavaScript program. Understanding Scope well will help you avoid bugs and common mistakes in software development.
Good luck in your Coding Journey!
🙌 Thanks for your attention! Hope to meet you at CheckiO. We are really interested in your thoughts! Please, leave a comment below! ⤵
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.
Join the Game