def display(self, assignment):
n = len(self.vars)<EOL>for val in range(n):<EOL><INDENT>for var in range(n):<EOL><INDENT>if assignment.get(var,'<STR_LIT>') == val: ch = '<STR_LIT>'<EOL>elif (var+val) % <NUM_LIT:2> == <NUM_LIT:0>: ch = '<STR_LIT:.>'<EOL>else: ch = '<STR_LIT:->'<EOL>print(ch, end='<STR_LIT:U+0020>')<EOL><DEDENT>print('<STR_LIT:U+0020>', end='<STR_LIT:U+0020>')<EOL>for var in range(n):<EOL><INDENT>if assignment.get(var,'<STR_LIT>') == val: ch = '<STR_LIT:*>'<EOL>else: ch = '<STR_LIT:U+0020>'<EOL>print(str(self.nconflicts(var, val, assignment))+ch, end='<STR_LIT:U+0020>')<EOL><DEDENT>print()<EOL><DEDENT>
Print the queens and the nconflicts values (for debugging).