The Gambler treated a subject Fyodor Dostoyevsky himself was familiar with—gambling. Fyodor Dostoyevsky gambled for the first time at the gaming tables at Wiesbaden in 1863. From that time till 1871, when his passion for gambling subsided, he played at Baden-Baden, Homburg, and Saxon-les-Bains frequently, often beginning by winning a small amount of money and losing far more in the end. He wrote to his brother Mikhail on 8 September:
|“||And I believed in my system ... within a quarter of an hour I won 600 francs. This whetted my appetite. Suddenly I started to lose, couldn't control myself and lost everything. After that I ... took my last money, and went to play ... I was carried away by this unusual good fortune and I risked all 35 napoleons and lost them all. I had 6 napoleons d'or left to pay the landlady and for the journey. In Geneva I pawned my watch.||”|
Fyodor Dostoyevsky then agreed to a hazardous contract with F. T. Stellovsky that if he did not deliver a novel of 12 or more signatures by 1 November 1866, Stellovsky would acquire the right to publish Dostoyevsky's works for nine years without any compensation to the writer. He noted down parts of his story, then dictated them to one of the first stenographers in Russia and his wife-to-be, young Anna Grigorevna, who transcribed them and copied it neatly out for him. With her help, he was able to finish the book in time.