Reporting back from the battlefield:
Atari 2600
ignoring brackets:
matched about 270 of 2687 games
not ignoring brackets:
matched 1559 of 2687 games
renamed 1104 of 2945 snaps
N64:
not ignoring brackets:
matched 334 of 323 games
renamed 318 of 883 snaps
I will test some more between today and tomorrow but it seems like if you ignore the brackets, you come up really short. I only did the ignore brackets test on the 2600 set which was the messiest so that is probably an extreme example. I'll re-do the N64, which is a much cleaner set, with that option to see if gets as many matches as I posted above. However I'm not seeing why I would want to check that box.
The "ignore everything in () and []'s" checkbox improved the accuracy quite a bit, so I wouldn't mess with it if I were you.
What did you mean by improved accuracy?
I'm curious as to what you have to say about that but it seems to me like you already have a working tool.
It was a pleasure scrolling through my 2600 list and seeing snapshots show up for a third of my games where before, only an occasional snap would show once in a full moon. As for the N64, almost all of the games now have matching snapshots. In fact, scrolling through the list I was able to find a remake of Asteroids for the N64 with 3D graphics that actually looks very cool and plays very much like the original.
Finally, if you get really serious about this tool in the future, here is a possibility I had not mentioned before. The website I provided that has the full sets of console snapshots, actually has the files named as the CRC value of the rom that they used to take the snapshot. They provide a tool which I used to then rename the snapshots from the CRC to the GoodX name of the rom in a Romcenter style file they provided as well.
A possibility for a tool like the one you just created would be to load the names of the snaps in their original rom CRC names. Then each zipped rom file could be scanned to build a database of the CRC's of each rom. Finally, each snap that has a matching rom CRC can be renamed to that rom's name. Any snaps that did not get a matching CRC could then be sent to the fuzzy renaming algorithm to attempt to get additional matches.
The above is just a thought exercises. I'm already set with the tool you created as is.
Thank you very much for putting that together.