So how computer's think?
How computer works in playing chess?

Ignore the previous comment. Troll.
They just calculate much like humans do. But at a much faster rate.

Thanks, But how can magnus calculate faster than chess program like houdini which is the fastest chess programmee I have heard.

I love this video
https://www.youtube.com/watch?v=Qc_v9mTfhC8
Magnus Playing With 10 Boards. Blindly

Then How Do He Defeat The Computers And World Champions
Humans play with little calculation, but lots of understanding. Basically memorized positions and logic with some calculation to check the details.
Computers play by applying algorithms which tell them to give value things like the center, or a passed pawn, or an unsafe king. They apply it to millions of positions then pick the move that led to the best position.
Humans beat computers when they can use their knowledge and logic to understand a position. Humans can make very long range plans without need for specific move orders.
Computers don't plan as far ahead because they only look at specific move orders. Computers beat humans when humans make relatively short term mistakes, especially tactics.

Yes you are right shell_knight and I think so that magnus never gets tired.
Yes. Magnus is actually a machine.
Or a machine is actually Magnus.
Either way, they're the same.

All the top players are chess geniuses. I don't know why they're so good, and they probably don't know themselves!
But they all worked very hard too. Right now Magnus is just a little better. Probably a little bit better at everything.

The final goal is to checkmate the King. When you plug in moves and how pieces move, eventually the computer calculates that a side has so and so advantage. With that, a computer takes the move that gives itself the best advantage.
If you want the nits and bits of the program go talk to a programmer.

Computer chess has a long and difficult history. There are entire books on it. Obviously the computer can search many possible moves faster than a human, which is why they are so good at tactics, but there are many problems. For one thing, the number of possible moves expands so fast that the search depth is limited except in endgames. For another thing, as you mentioned, computers don't really understand anything, including knowing whether a position is good or bad, so they have to rely on heuristics (rules of thumb), programmed from human expertise: move toward the center in the opening, don't put your knight on the rim, don't expose your king too much, don't get doubled pawns, castle early, etc. Balancing heuristics is a major problem since you have to make sure one priority doesn't accidentally override another one at a bad time, and you're dealing with large numbers of heuristics whose relative priorities have to be at carefully tested strengths. Finding experts to provide knowledge about the fine points of chess is another problem. There are other problems, too, that I won't get into. Computers were very bad at chess until the 1980s, now they are extremely good, but humans can still beat them because of long-term positional considerations that computers simply don't understand.
P.S.--I'm a programmer.
If you need help, please contact our Help and Support team.
How can they make so accurate moves as how do they know which is right and which is wrong?
Thanks!