Coding chess

The Picard Maneuver@startrek.website to AnarchyChess@sopuli.xyz – 483 points –
47

You are viewing a single comment

Lol... stupid junior-devs... in such case you should go with switch-statements instead... much cleaner.

Switch-statement (called match) was added to Python 3.10 in late 2021. This is a reasonable, albeit older style of enumerated branching.

Switch statements and differently named but similarly purposed statements have been around since the 60s. Get outta here with this "switch is a newer style because python only just got them" nonsense.