Mechanical and electronic combinatory game and puzzle