Programmed basketball