In Enterprise: The First Adventure by Vonda N. Mc Intyre (1986) we see the first meeting between Kirk and Spock. Kirk's just taken over command of the Enterprise from the departing Christopher Pike, and Spock is very unsure about his new captain. In the officer's lounge that evening, Kirk walks past Spock who is sitting alone with a 3-D chessboard in mid-game. Kirk first figures out from the configuration that it's black's move, then watches Spock make a move, and then announces "White to checkmate in three" and strolls away. Sometime later Spock comes over to Kirk and, after ascertaining that Kirk was serious ("One can never be certain when a human being is making a joke") asks to see the mate-in-three maneuver. Kirk makes the first move and then Spock sees it and resigns.
"Your move," Spock said, "risked your queen and your knights. It was... illogical."
"But effective," Jim said.
"Indeed," Spock said softly. "What mode of calculation do you use? Sinhawk, perhaps?" Or a method of your own devising?"
"One of my own devising, you might say. I didn't calculate it, Spock. I _saw_ it. Call it intuition, if you like. Or good luck."
"I do not believe in luck," Spock said. "And I have no experience of... intuition."
"Nevertheless, that's my method of calculation."
Spock cleared the board.
"Would you care," Spock asked, "for a complete game?"
[The next morning, a somewhat sleepy Kirk enters the Bridge:]
He had traded half the night's sleep for the hard-played chess game with Commander Spock. He had won with a flamboyant, one might even say reckless, series of moves. Mr. Spock had been winning until Jim's final, exhilarating rally.
"Good morning, Commander Spock."
"Good morning, captain."
"I enjoyed our game last night."
"It was..." Spock hesitated. "Most instructive."