def main():
	chess_pieces_move_dict = defaultdict(lambda : defaultdict(int))
	for line in sys.stdin:
		count, piece, x,y = re.split("\s", line.strip())
		x = int(x)
		y = int(y)
		count = int(count)

		# piece is in lower case to ignore black \ white differences
		if piece.lower() != piece:
			x = -x
			y = -y
		chess_pieces_move_dict[piece.lower()][(x,y)]+= count
	draw_charts(chess_pieces_move_dict)
	draw_overall_chart(chess_pieces_move_dict)
Draw a histogram of the relative movments of the pieces
dataset/ETHPy150Open nivm/learningchess/chess/simplemove/draw_moves_dist.py/main