this post was submitted on 01 Dec 2023
17 points (100.0% liked)
NotAwfulTech
367 readers
1 users here now
a community for posting cool tech news you don’t want to sneer at
non-awfulness of tech is not required or else we wouldn’t have any posts
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
2 a,b:
This one is just a test of whether or not your language lets you split strings.Only novel thing I did here was recognise that red, green and blue end in different letters, so no need to string match the whole world, just check the last letter of the colour.