this post was submitted on 29 Jan 2024
480 points (98.8% liked)

AnarchyChess

5139 readers
127 users here now

Holy hell

Other chess communities:
[email protected]
[email protected]

Matrix space

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nelly_man 4 points 8 months ago

Same thing with me and chess in high school. I learned TrueBASIC, and I didn't learn about arrays or subroutines. But, I did manage to make a chess application that two people could play a game of chess on. It highlighted legal moves when you clicked on a piece and ensured that only legal moves were made. It also showed the captured pieces to the side of the board. I think I had it set up so that you could only promote to a previously captured piece, but all the other rules were implemented properly (or at least, I assumed they were).

The implementation involved a bunch of variables for each individual chess piece and a bunch of if statements inside a loop. I remember describing arrays and explaining that I wished they existed, but never actually found out they did until I was finished. I don't know how many lines of code it was, but when I copied it into Word, and it spanned about 350 pages in total.

Part of me is proud of the accomplishment. Another part is horrified.