Thanks to a post from patron Shaun Bebbington, I tried a bit of "Code Golf" on a chessboard challenge. How short of a C64 BASIC program can we write that correctly prints "light" or "dark" corresponding to the chessboard co-ordinate input by the user?
Links
https://codegolf.stackexchange.com/questions/63772/determine-the-color-of-a-chess-square
To support 8-Bit Show And Tell:
Become a patron: https://patreon.com/8BitShowAndTell
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel: https://youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA
Index:
0:00 What is Code Golf?
0:45 Chessboard colour challenge
3:38 The long solution: parsing
5:45 The odd/even property of a chessboard
8:32 Branchless dark/light printing
10:45 One-line attempt
13:48 Shortening it
16:58 About that space in the string
19:26 Abbreviating: 57 characters
20:40 Comparing to other languages
22:10 Thanks!