this would be their fourth visit to nevada , their second to tahoe , and ralph would continue to follow his ironclad gambling rule : he would quit when he had either ( a ) lost a thousand dollars , or ( b ) won ten thousand .