Skip to main content

Posts

Legal move generation

17 Jun 2022 after 2 am added  fen  output, generates direct url to lichess analysis! afternoon repaired enpassant and castling moves refactored move generation function minor  san  notation improvements started legal move generation function

After a long break...

16 Jun 2022 after a long break (made a snake clone in c++ during this time, check it out!) still coding move generation moved hard-coded numbers to Enums ( Direction  and  Player ) refactored sliding moves (Q, B, R) added  pgn  output (ugly but atleast lichess can parse) now engine generates moves from both sides, yay! separated  main.cpp  into several header and cpp files

Move generation

1 Jun 2022 after 12 am ditching color output for now reading evening, night more reading modularizing, exceptions 2 Jun 2022 after 12 am started writing this blog lol ### started writing move generation function

The beginning of code

31 May 2022 night read about chess programming uci protocol numba+python vs c/c++? what about julia? started coding c or c++? c arrays vs stl arrays/vectors for 2d printing unicode pieces or ascii?

How to write chess engines?

30 May 2022 night how to write chess engines? read some code which language to choose? python : easy, ready-made libraries, slow js : almost same, nice gui c++ : hard, have to learn c : hard and complex, hard to maintain, boring?