The "first" video game is actually a matter of debate, since several early experiments laid the groundwork. Pioneering examples often cited include physicist William Higinbotham's Tennis for Two (1958) and engineer Ralph Baer's later work that led to the first home console, the Magnavox Odyssey.
Because "video game" can be defined in different ways, no single person is universally credited. What's clear is that it was the combined work of several inventive minds in the mid-20th century that got it all started.