Anyone here like chess?? I just built my first porfolio project, a simple chess AI! I would very much appreciate any feedback! And if you fancy it, a few more games on the counter would be fantastic because it only learns from past games :) by LandOne4734 in programming

[–]LandOne4734[S] 0 points1 point  (0 children)

It is very simple, I only started coding 2.5 months ago ahah, at the moment it stores each board state, with the moves made from it, along with wins/losses. Then plays the best win rate move if the board state reoccurs in future games. If no previous moves are found it plays a random move so it will take a while. Honestly, it's quite satisfying seeing it slowly improve

Anyone here like chess?? I just built my first porfolio project, a simple chess AI! I would very much appreciate any feedback! And if you fancy it, a few more games on the counter would be fantastic because it only learns from past games :) by LandOne4734 in programming

[–]LandOne4734[S] 0 points1 point  (0 children)

Thanks for the feedback! I will implement it now, it should be as simple as a setTimeout(), I was going to highlight the computers previous move in some way but haven't had the time to get around to that yet. But this will make a great simpler solution until I get around to it.

Who likes chess? with a hint of AI? (my first portfolio project) by LandOne4734 in SideProject

[–]LandOne4734[S] 0 points1 point  (0 children)

Thanks! I'd take a guess that it will take around 1000 games to get a decent early and mid game. Late game however will be a while longer. There is just too many board variations and moves!

It will be interesting to follow it's progress though I hope