Merge pull request #124 from mco-gh/filefix

get small word file if not present
This commit is contained in:
Peter Norvig
2022-11-30 09:27:44 -08:00
committed by GitHub

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",