If it's looking at all moves 14 deep how could it not find mate in 7?
You're right. Which means it's not looking at all possible variations 7 moves deep.
Maybe the earliest engines used a brute force method like this, but a large factor in the strength of a modern engine is how efficiently it ignores lines it deems bad, and focuses on lines it deems good.
For example, the upgraded Deep Blue, which defeated Kaspaorv in the 90s, looked at 200 million positions per second, and was maybe around 2700-2800 strength. Stockfish is about 800 points stronger and looks at fewer positions per second. This is possible because the search function is more efficient.
Now, there are modes where you can turn this off, and just have an engine brute force search, and that can help engines solve positions that typically give them trouble... but chess.com is just some basic browser stockfish. To use fancy features like that you'd need to download your own interface, and then download the engine (this isn't hard to do).
--
So why does it eventually find mate in 7? I don't know the intricacies of how engines work, but apparently lines marked as bad will eventually be revisited.
So what does the depth number really mean? IIRC it's something like the main line's depth minus something like 20 ply, which is done to avoid the horizon effect.
Chess.com says this about depth: "This number describes how many moves ahead the engine is looking in order to make its decision on what the best move is."
This is exactly what I always thought depth was. But looking at analysis seems to indicate otherwise. Take these examples of analysis of the same position at different depths:
As you can see from the last image, there is a forced mate in at most 7 moves. So why does a depth of 14 or 27 not find that? If it's looking at all moves 14 deep how could it not find mate in 7? I don't get it.
Help???