Education Template

Square Utilization Calculator ('Traffic')

This is a small JavaScript program that you can use to find the square utilization for different pieces in a chess game or database of multiple games. This is entirely my original code, and might not be the most efficient way to carry out these calculations.

To use this tool, simply paste your input text into the field below and choose the appropriate options. The input must be a PGN file, with one or multiple games, but the formatting (line breaks, annotations, header tags, etc) doesn't matter much.

For the output, you can specify the color and piece for which you want square occupancy (parking) data. If you select "All Pieces", data for each piece will be listed in order, followed by the total combination of all these pieces. If you select "Any Piece", only the combination or sum of all pieces will be displayed. Both of these options follow the color selection option as well. Finally, you can select all the resulting tab-delimited text to facilitate copying by using the button at the bottom.


Input Field:



Piece Output:

Select from the list above the subset of results you would like reported in tab-delimited fashion. "All pieces" returns results for each piece as well as a summation (at the bottom). "Any piece" returns only the summation. In the future, ways to detect the on which squares captures, checks, and checkmates occur will be developed.






Piece Traffic Per Square




Total processing Time (milliseconds):