The thriller, which centres on the world of online gambling, will be directed by Brad Furman (The Lincoln Lawyer), with a script by Ocean's Thirteen writers Brian Koppelman and David Levien.

Leonardo DiCaprio is a producer on the movie, with filming to begin in Puerto Rico this summer.

Affleck recently directed his third film Argo, a thriller centred on a group of CIA agents carrying out an unusual rescue mission. The film is set for release in September, and will star Affleck alongside Bryan Cranston, John Goodman and Alan Arkin.