Takahiro Hayashi won his first nationwide title in shogi while still in high school and by the age of 22 he was the world amateur champion. His coaches were urging him to turn pro.

But Hayashi wanted to be an entrepreneur, not a shogi player. So in 2009, he found himself in a room with local venture capitalists, presenting a 120-page pitch about his social game firm. The financiers tuned out.

“One of the investors told me that he didn’t really listen to the explanation of our business plan,” the 41-year-old Hayashi said in an interview at Heroz Inc.’s headquarters in Tokyo. “He said that ‘You’re a world champion, so you’ll work something out.'”

Hayashi got the financing. “It blew my mind,” he said.

But so far at least, the venture capital executive’s bet has proved profitable. Heroz, which went on to develop artificial intelligence technologies through the creation of an online shogi game and then used AI for a range of other services, is now a public company, and its shares are thriving.

In April, the company listed on the Tokyo Stock Exchange’s Mothers index of emerging stocks and had a record-breaking debut. The shares opened 11 times higher than the initial public offering price, the best-ever start by a Japanese-listed company. The stock has almost quadrupled since going public.

“I didn’t think it would be so successful,” said Hideto Fujino, one of the country’s most famous stock pickers, who took a stake in the company as a personal investment before Heroz went public and is now one of the top 10 shareholders. Fujino, a keen shogi player himself, said he bought the stock initially to encourage the company, rather than because he expected to profit. “It was more a form of support,” he said.

Heroz released its game “Shogi Wars” in 2012. The following year, an artificial intelligence engine developed by an engineer of the company became the first to defeat a professional player in the game also known as Japanese chess. That was about 16 years after Deep Blue, a chess computer created by IBM, beat then-world champion Garry Kasparov. Shogi is more complex than chess because pieces return to the board after being captured, increasing the number of move permutations that must be considered.

After building the new Deep Blue, Heroz used the deep learning and machine-learning skills it acquired to expand into other areas — everything from construction to financial services.

It couldn’t have come at a better time. The AI industry is expanding rapidly in Japan, where a shrinking workforce is causing the tightest labor market in decades, creating an opportunity for companies to use the technology to help fill vacancies and improve efficiency. The domestic AI market may top $18 billion by fiscal 2030, a more than sevenfold increase from fiscal 2016, according to Fuji Chimera Research Institute Inc. estimates. “There’s huge potential,” Hayashi said.

Heroz has been working with Takenaka Corp., the construction company that developed Abeno Harukas in Osaka, the tallest building in the country, to create an AI system to help design buildings. The system will crunch Takenaka’s existing structural design data and learn from its architects to provide various patterns for how buildings could be designed. Architects then compare the patterns and consult with clients to decide which one to use.

Takenaka expects to reduce the routine work associated with designing building structures by some 70 percent, giving its professionals more time to focus on being creative. It aims to develop a prototype of the AI system by the end of this year and put it to use by 2020.

“Structural design is a lot like shogi in that you’re choosing the best of various options,” said Hirokazu Yoshioka, the head of technology planning at Takenaka. “So Heroz is the perfect partner for the AI system we want to make.”

Heroz has also formed a partnership with Tokyo-based Digital Hearts Holdings Co. to use AI technology for software testing. If all goes to plan, the AI engines will learn by themselves the best way to test programs.

And in the world of finance, Heroz has tied up with online brokerage Monex Inc. to provide robo-advice for people who trade currencies. The system analyzes their past performance and provides suggestions for improvement.

With all the excitement about Heroz’s stock, valuations have gone through the roof. The shares trade at 38 times book value and 210 times earnings.

Short sellers have been decreasing. Short interest stood at 59 percent of the free float as of Aug. 13, according to IHS Markit data. That’s the highest level among the 253 companies in the Mothers index.

“It’s overvalued,” said Mitsushige Akino, an executive officer with Ichiyoshi Asset Management Co. in Tokyo. “It’s an excellent company, but people’s expectations are too high and the shares have gone up too far.”

Heroz now has a market value of ¥58.5 billion ($530 million). That means Hayashi and his co-founder, Tomohiro Takahashi, who each have 37 percent stakes, are each worth almost $200 million from their shareholdings alone. The market decides the share price, so it’s difficult to comment on it, Hayashi said.

But he does have one target in sight. The sixth-dan shogi player, generally the highest rank for amateurs, wants Heroz to become the next Japanese company with a market value of more than ¥100 billion.

“When we founded Heroz, we told investors that we wanted to create a ¥100 billion company,” Hayashi said. “It’s not worth doing if we don’t grow to that level.”