Gambling contracts are legal in California. At least when the underlying gambling is legal. And you can invest in another gambler and enforce the resulting contract.
Just showing how the twentieth-first century on this issue is substantially different than the twentieth. In the old days we didn't like gambling. In the new days we're much, much more lenient.