A nuclear weapon is a weapon that suddenly releases the energy in the nucleus of certain types of atoms .
There are two basic types of nuclear weapon .