AlphaZero was given the rules of the game, but it figured out how to beat everyone else all by itself!
All by itself, meaning playing against itself...
Interestingly, Bobby Fischer did it in the same way. Maybe AlphaZero also hates chess ? :-)