We present a systematic construction of integrable third-order systems
based on the coupling of an integrable second-order equation and a Ri
ccati equation. This approach is an extension of the Gambler method th
at led to the equation that bears his name. Our study is carried throu
gh for both continuous and discrete systems. In both cases the investi
gation is based on the study of the singularities of the system (the P
ainleve method for ordinary differential equations and the singularity
confinement method for mappings).