def k_in_row(self, board, move, player, xxx_todo_changeme):
(delta_x, delta_y) = xxx_todo_changeme<EOL>x, y = move<EOL>n = <NUM_LIT:0> <EOL>while board.get((x, y)) == player:<EOL><INDENT>n += <NUM_LIT:1><EOL>x, y = x + delta_x, y + delta_y<EOL><DEDENT>x, y = move<EOL>while board.get((x, y)) == player:<EOL><INDENT>n += <NUM_LIT:1><EOL>x, y = x - delta_x, y - delta_y<EOL><DEDENT>n -= <NUM_LIT:1> <EOL>return n >= self.k<EOL>
Return true if there is a line through move on board for player.