get small word file if not present

This commit is contained in:
Marc Cohen 2022-11-27 11:45:53 +00:00
parent d9889cc8d8
commit 06d95ea89b

View File

@ -59,6 +59,8 @@
"Reply = str # A reply is five characters taken from 'GY.': Green, Yellow, Miss\n",
"Green, Yellow, Miss = 'GY.'\n",
"\n",
"! [ -e wordle-small.txt ] || curl -s -O \\\n",
"https://raw.githubusercontent.com/norvig/pytudes/main/ipynb/wordle-small.txt\n",
"words = open('wordle-small.txt').read().upper().split() # 2,315 target words\n",
"\n",
"@cache\n",