Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

President Donald Trump has had a room-size golf simulator installed in the White House, several sources confirmed to NBC News. It cost $50,000, according to The Washington Post, which cited two people who told the paper about the system.

The installation of state-of-the-art simulator — which allows the president to play virtual rounds of golf — was first reported by the Post.

The simulator allows players to hit a ball at a large video screen, which has images from courses around the world.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

"The president replaced the old system that was there," a White House official said. "He paid for the new one, including installation, personally. He has not used it since it’s been installed."

A source confirmed to NBC News that President Barack Obama had an older, less sophisticated golf simulator.

Other details about the simulator were not available, but the Post noted that three of Trump's 16 golf courses have simulators made by the Danish company TrackMan Golf, and the system costs $49,995. The simulators offer "hyper-realistic 3D courses mirroring the feeling of being on the real courses," the company's website boasts.

The White House already has an outdoor putting green, which was installed in 1954 by President Dwight Eisenhower. It has other amusements as well, including a movie theater, basketball court and a one-lane bowling alley.

Trump, a regular golfer who complained repeatedly on Twitter about Barack Obama going golfing when he was president, has visited his own golf properties 168 times since taking office, an NBC News analysis found. It's unclear whether he's actually golfed during every visit — the White House generally refuses to acknowledge when he's hitting the links.

Can you believe that,with all of the problems and difficulties facing the U.S., President Obama spent the day playing golf.Worse than Carter — Donald J. Trump (@realDonaldTrump) October 14, 2014

That likely has to do with his former habit of teeing off on his predecessor during the 2016 campaign. "I'm going to be working for you," Trump told his supporters at one rally. "I'm not going to have time to go play golf."

Trump was forced to keep off the greens during the 35-day government shutdown, but went back out with Jack Nicklaus and Tiger Woods at his Florida golf course this month.