You are browsing as a guest. Sign up (or log in) to start making projects!

3h 5m 49s logged

The pieces have been placed. I was so sloppy 😭

I’ve added pieces to the chessboard. I’ve finally started facing my fear and started working on the puzzles section. It seems that creating the chessboard for puzzles will be harder than I have anticipated. Also please don’t mind the black pieces blending in with the background.


I didn’t find chess piece set I liked so I downloaded the lichess chess piece set from pinterest. I was trying to crop them in figma and I coundn’t crop them properly. Also it was a tedious job. After downloading two crop pieces from figma I again went to the web to find out if someone already made them. This website came in clutch (greenchess.net). They had the whole chess pieces set of lichess available for download.


Then, I started to code with no plan in mind :noo: . I don’t know why do I do this to myself. Obviously it was a bad decision. So I decided to use pen and paper to mainly solve one thing and that was how to place the pieces on the board. The writing helped me alot to think better.


I was so sloppy while coding. I was mostly outside while coding and I was really distracted. One sec I was coding and another sec I was thinking about something else. I was making so many silly mistakes making the process more frustrating that it already was.


I learned about fen while doing this (Forsyth-Edwards Notation). Through this any chess position can be stored and recreated in one line. It looks like this

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

I only needed to loop over the first part divided by slashes for positioning the pieces. Other things will be used later. I feel the code is really poorly written but it works so idk.


I also found out about regex while I was trying to write a if condition for seperating strings and string with numbers.


Okay this much for today. Bie…. :byee:

0
100

Comments 4

@PAPER_01

Magnus carslen must be happy :)

@Sam

@PAPER_01 Magnus carslen would be crying if he saw my code 😭

@PAPER_01

haha lol, and then magus resigns ৻( •̀ ᗜ •́ ৻)

@Sam

Yeah, sure 😂