Code Golf with C64 BASIC: Chessboard Challenge
Автор: 8-Bit Show And Tell
Загружено: 2025-06-04
Просмотров: 11598
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/qu...
To support 8-Bit Show And Tell:
Become a patron: / 8bitshowandtell
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel: / @8-bitshowandtell247
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!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: