Hi all. after looking for a rather "easy" board game to implement I came across Reversi. it is the perfect challange for me after coming from connect 4. its gonna be implemented in C which i just started learning (coming from java) so needed something not that hard (like chess)
Well, it seems that generate the moves is not so easy as at appears.. sure i can do it in a rather naive approach and use a normal array for the board and go through each row,column and diagonal (or maybe each square)
but it will be a lot of itterations over the array and very slow. I am trying to think of a way to implement this with bit boards, but i can't seem to find an algorithm that does this. Any suggestions? I don't mind using a regualr array, but i need something faster than what i've came up with so far.