My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Has anyone here written the code (or tried to write the code) for a game of chess?

Siddarthan Sarumathi Pandian's photo
Siddarthan Sarumathi Pandian
·Mar 5, 2017

Anyone who has a degree in Computer Science must be aware of the N-queens problem. I think Chess is just an extension of that.

I played Chess after a long time today (sadly, I lost). I was thinking if I had an algorithm ready, I would never lose. Interestingly, I think if two well written codes of chess competed against each other, the game will always end in a draw.