When I tried to compile tt on Windows, I faced the following bugs.
The word list was not found, because the path passed to readPackedFile was formatted as words\1000en instead of words/1000en. This is problematic since the packedFiles map has hard-coded keys in the words/1000en format. To fix this bug, I replaced the call to filepath.Join with a hard-coded /.
The home directory was not found because the HOME environment variable is not defined on Windows. I was able to define $env:HOME = $env:USERPROFILE and use tt successfully, so I updated the program to perform this substitution when the HOME environment variable is not defined.
These two changes make tt at least minimally usable on Windows!
When I tried to compile
tt
on Windows, I faced the following bugs.path
passed toreadPackedFile
was formatted aswords\1000en
instead ofwords/1000en
. This is problematic since thepackedFiles
map has hard-coded keys in thewords/1000en
format. To fix this bug, I replaced the call tofilepath.Join
with a hard-coded/
.HOME
environment variable is not defined on Windows. I was able to define$env:HOME = $env:USERPROFILE
and usett
successfully, so I updated the program to perform this substitution when theHOME
environment variable is not defined.These two changes make
tt
at least minimally usable on Windows!