Compulsive gambler David Caine uses his brilliant mathematical mind to outsmart the odds at Manhattan's underground poker clubs, but when he experiences a severe epileptic seizure at a key moment, he finds his life spinning out of control, and agrees to try an experimental treatment that soon causes more harm than good.