Dominion Strategy Forum

Dominion => Dominion General Discussion => Topic started by: ConMan on November 24, 2017, 01:27:21 am

Title: Substrings in card names
Post by: ConMan on November 24, 2017, 01:27:21 am
I've started looking for the minimal unique substrings in card names - in other words, what's the smallest set of consecutive letters that uniquely defines a card? I'm looking across all names of cards and card-shaped-things in the game (I'm debating whether to include both "Knights" and all the individual Knights, and I am counting split piles only as separate cards), ignoring punctuation (including spaces) and here are some of the interesting results so far (going alphabetically, I'm just finished the ones starting with "E", and where I give a substring it's the first one of that length in the card's name):

Title: Re: Substrings in card names
Post by: ThetaSigma12 on November 24, 2017, 09:14:57 am
Man, I hope we don't have to start using these to refer to the cards.
Title: Re: Substrings in card names
Post by: JThorne on November 24, 2017, 12:07:07 pm
Do you have a plain-text list of all of the card names? I could write a Python script in about ten minutes that would give you those answers.
Title: Re: Substrings in card names
Post by: ConMan on November 26, 2017, 05:37:08 pm
Do you have a plain-text list of all of the card names? I could write a Python script in about ten minutes that would give you those answers.
Currently, no, it's all in an Excel spreadsheet. I could probably do it in R in about half an hour, too, I'm just enjoying the manual effort. I'll keep at it, and once I'm done I'll try to release it all in some kind of useful format.