{{rank}} | % for file in files: % sq = file + rank % color = 'bgcolor=silver' if is_black(sq) else "" % widths = i==0, file=='h', i==7, file=='a' % widths = "pt ".join(map(str, map(int, widths))) + "pt"{{game.board[sq]}} | % end
% for file in files: | {{file}} | % end