this post was submitted on 29 Jan 2024
485 points (98.4% liked)
AnarchyChess
5192 readers
114 users here now
Holy hell
Other chess communities:
!Chess@lemmy.ml
!chessbeginners@sh.itjust.works
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
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.