I was watching a video on Computational Complexity and the lecturer mentioned that "we do not current have a algorithm to allow us to win a game of chess".
If so, I'm interested in knowing how chess games/simulators work of which the user plays against the computer? Is the computer deciding on a strategic approach which is then finally chosen randomly?
With a computer program you can do the following:
These are just two basic algorithms the chess program might use. The first one is the basic algorithm all (most) chess programs use. See also this article.