Post image
Light Mode
Dark Mode
Crafting Code & Conquering Grids

Hello, checkiomates🐱‍👤!

This digest is dedicated to modern web automation using Selenium, delving into essential tools for maintaining excellent code quality, and a first look at Python's upcoming "T-strings" for enhanced string handling. Capping off the digest is a fascinating mission inspired by the board game Kingdomino, challenging you to count gapless tilings on a 5x5 grid given a specific starting castle position.

💡TIP

On Easy difficulty, each of the few starting stations is dedicated to a distinct data type.
If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

🏁 MISSION

Kingdomino Tilings by freeman_lex -

One of the element of boardgame Kingdomino is placing tiles (2x1) near the castle (1x1) or near another tile in such a way that total size of the field is no more than 5x5. One of the possible tilings is shown below. As you may expect, some tilings may have gaps inside or/and near the border, but in this mission you should count number of tilings without gaps, given a zero-based row, column position of the castle.

kingdomino(0, 1) == 0
kingdomino(0, 2) == 192
kingdomino(1, 1) == 112

📖 ARTICLES

Modern Web Automation With Python and Selenium -

Learn advanced Python web automation techniques with Selenium, such as headless browsing, interacting with web elements, and implementing the Page Object Model pattern.

Top Python Code Quality Tools to Improve Your Development Workflow -

This guide covers a list of tools that can help you produce higher quality Python code. It includes linters, code formatters, type checkers, and much more.

Python's new t-strings -

Using f-strings is a readable way of building output, but there are situations where they can’t be used because the contents need to be verified before being string-ified. The new t-strings, coming in 3.14, are a solution to this problem.

👩‍💻CODE SHOT

What do you think the following code does?

def ??????????(*args):
    (x1, y1, l1), (x2, y2, l2) = args
    return {x1 - x2, y1 - y2}.issubset(range(- l1, 1 + l2))

🙌 Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! We are really interested in your thoughts! Please, leave a comment below! ⤵

Created: May 12, 2025, 2:48 p.m.
3
40
User avatar
freeman_lex