The film and television writer Aaron Sorkin (“The Social Network,” “The West Wing”) has directed his first film, “Molly’s Game” (Dec. 25), his adaptation of the memoir by Molly Bloom, who was convicted for her role in a high-stakes gambling ring. The film stars Jessica Chastain as a professional skier who becomes the organizer of a clandestine poker game. As the client list for that game grows, it gets the attention of the Russian mafia and, ultimately, the F.B.I. In the excerpt below, Molly is in court awaiting arraignment with Charlie Jaffey (Idris Elba), the lawyer she has approached about taking her case. Mr. Sorkin has annotated descriptions and dialogue, discussing some of the decisions behind his choices.