Moon and planets

What causes a star to become a supernova