HOUSTON — After just another jaw-dropping performance, James Harden was sitting shirtless at his locker stall, checking his texts.

It was the middle of April, and he had just scored 44 points in the Houston Rockets’ playoff opener, a slower-paced and slightly weird game for the NBA’s fastest and boldest team, and anyway, Harden had been frustrating for Minnesota and impossible to stop and — how to best put this — most valuable for the Rockets.

“What did he want? A free throw, a three-pointer, a layup?” Timberwolves guard Jimmy Butler said afterward. “He got whatever he wanted.”

Harden looked contented afterward as he scrolled his phone, and somewhere buried under most of the other messages was a text from Scott Pera, who coached Harden in high school and as an assistant coach at Arizona State.

“Good luck,” it read, and considering Pera said he has texted Harden before every game over his nine NBA seasons, he gave up on creativity long ago.

Pera, who’s now the head coach at Rice University a few miles from Toyota Center in Houston, has watched Harden systematically go from good to great to MVP front-runner. He has paid unusually close attention to the 28-year-old guard’s intelligent play and ability to find loopholes in certain league rules, and it makes Pera chuckle when he thinks about how all this started a dozen or so years ago outside Los Angeles.

Harden was a sophomore then at Artesia High, and talented as the young shooter was, his voice wasn’t the only thing that seemed soft. So one day after practice, Pera picked up a pad and smacked Harden with it, knocking his skinny behind to the floor.

Harden looked at his coach, a mix of confusion and anger, and got up and faced the pad again.

“You have to know how to be a great scorer, not just a great shooter,” Pera said he told the player then, and the lesson was that a complete player will learn to exploit defenders’ aggression, draw a foul and sink two easy shots.

It made immediate sense to Harden, already revealing himself then as a thoughtful player who could retain information almost supernaturally fast, so Pera drilled him again and the anger turned to applied logic and a desire for opportunity.

“He just wanted more — give me more, show me more,” the coach said in a telephone interview. “A lot of days of just banging into him to make him understand he could take the hit and … then his creativity and his mind just took over.”

And that’s the most effective thing about Harden, isn’t it? He’s 6 feet 5, and at 220 pounds not known as much for his physical dominance as fellow MVP candidate LeBron James, and yet he has combined his physical gifts with those of his mind to become one of the world’s most dominant basketball players. How else to explain this season, combining a new league rule ostensibly meant to limit Harden along with Houston’s addition of nine-time all-star Chris Paul, and somehow the Rockets’ best player has been more lethal than he was before?

Years after Pera introduced Harden to his pad, Harden would become so skilled at drawing fouls, so very blatant at it, that the NBA ruled last year that ballhandlers couldn’t initiate contact and also be the victim of a shooting foul. The “James Harden Rule,” as it’s known, has wound up being a heftier challenge for game officials to enforce than the player it’s named after — Harden nonetheless led the NBA in free throws and attempts during the regular season, sinking 129 more than second-place Anthony Davis — but he adapted anyway, disappearing into a gym last summer.

With an already devastating step-back midrange shot, Harden decided to expand his weapon to long range. Harden made 36.7 percent of the 722 three-pointers he attempted, and for the first time since 2012, a player besides Golden State’s Stephen Curry led the league in made threes (Curry did miss 31 regular season games). Against Minnesota last month, the step-back — which may or may not be another gray area in the rules, considering Harden’s stutter-step action before the shot — was what it has been all season: nearly impossible to defend.

“If you have that aggressive mind-set, good things will happen,” Harden said after that game. “If they gave me space enough where I can get my shot off, I shot it. If they weren’t pressuring me enough to where I could get by them, then make a play for somebody or myself, and I did that. Whether it’s tonight, whether it’s 82 regular season games, I’m going to do the same thing.”

It was just another weakness Harden identified in himself, defenders and indeed the league, and the Rockets have been the favorites to reach the NBA Finals because of his ability to exploit those things.

“He’s able to see things and able to understand, and he processes them very quickly and in real time,” said Herb Sendek, who coached Arizona State during Harden’s two seasons in Tempe. “Some guys have to hit pause and rewind and have an explanation, but it’s a whole other thing to make those snap decisions.”

It didn’t take long before Sendek, who had spent a lifetime in coaching, asked Harden what he was seeing during a game — before making an adjustment based on the young player’s observations. Impressive for a senior on a college basketball team; almost unheard of for an underclassman.

But Harden’s mind seems to work differently from most players, teammates and former coaches said, and his NBA career underscores that. He has existed and thrived as a sixth man and an anchor of Oklahoma City’s run to the NBA Finals in 2012, been unleashed as a franchise player with the Rockets with almost unlimited freedom, been paired with Paul this season in a kind of basketball social experiment. Harden has been overlooked and double-teamed and turned loose, and it doesn’t matter, because his X-Man power is adjustment, and it’s maddening and frustrating unless you root for or play with him.

“He sets a culture for this team,” said Gerald Green, an NBA veteran who said Harden is perhaps the most unusual and effective team leader he has played with over more than a dozen seasons. “Even when he tells us, ‘We’re going to do this today; we’re going to have a meeting today,’ he wants [input from] everybody.

“He’s the one that calls the shots. But he lets everybody have a word.”

So many years after Pera challenged Harden that first time, opening a wormhole of ways to exploit a game and its supposed limitations, he now watches his former player from across town. He has seen a player who keeps on reinventing himself and in an unusual way might need to again, considering he is eight wins from an NBA championship and a seemingly cursory vote to crown him as MVP, indeed basketball’s mountaintop.

“He just knows himself so well,” Pera said, and he’ll keep texting Harden virtually the same thing before every game, knowing the man who checks them afterward is perhaps the league’s best player at creating his own luck.

Read more: