Zynga Inc. is thinking about making a big bet on gambling, a step that analysts say could help end its dependence on Facebook Inc.

It certainly won’t end its dependence on legal counsel.