Can ai's play boardgames?

The answer to that question is definitely yes. Someone did, in some sense, teach AlphaChess valid moves. But nobody taught it anything about strategy; it did that all on its own.