A computer is not designed to play chess, but it does.
Oh lordy lordy, it's a miracle.
More specifically, a computer is designed to run code, to store and retrieve data. A chess program is a type of program than you can run on a computer.
More to the point, the methods stockfish uses to play also prevent it from solving chess i.e. the way it prunes moves makes it a good player but a non-solver.
llama puts it very clearly. As usual.
Stockfish is a 'non-solver'. The key.
An excellent post by llama.
@12983
"the methods stockfish uses to play also prevent it from solving chess i.e. the way it prunes moves makes it a good player"
++ (1) To play is to select 1 legal move among the legal moves.
(2) To analyse, like for weakly solving chess, is to select all legal moves that oppose against the game-theoretic value.
(3) To generate a table base like for strongly solving chess is to select all legal moves.
If a program can do (1), then it can also do (2).
If a program can do (1) or (2), then it can also do (3).