You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @Zireael07, thank you for the comments 👍🏻
I still need to get back to this game... There's still a lot of refactoring i need to do here.. Anyways, answers below
check if can eat is a bit weird for a chess game, I don't understand what it does? does it check for a possible capture of enemy piece?
It's supposed to be a method that checks if the tile is free or if it has an enemy piece on it and returns the tile or an empty array. From what I remember, I used that method for checking every time the player wants to move or when the ai is choosing the next position
I don't see a way for AI to figure out what the best move is
I wouldn't properly call it AI :p, since it's still a lot of work missing. By now, it only checks for all the possible piece moves and if one of the moves has the possibility to eat one of the player pieces, then that move will be chosen
The text was updated successfully, but these errors were encountered: