I just found this list of almost 70K words: http://www-personal.umich.edu/~jlawler/wordlist
Might be a good way to see how efficient or inefficient our code is
I just found this list of almost 70K words: http://www-personal.umich.edu/~jlawler/wordlist
Might be a good way to see how efficient or inefficient our code is
I can already comment on something. I added that list of 70K words to my “HiddenWordList.h” file.
It starts like this:
#pragma once
#include "CoreMinimal.h"
const TArray<FString> Words =
{
TEXT("a"),
TEXT("a-horizon"),
TEXT("a-ok"),
TEXT("aardvark"),
TEXT("aardwolf"),
TEXT("ab"),
TEXT("aba"),
TEXT("abaca"),
//and all the way down the file
TEXT("zymosis"),
TEXT("zymotic"),
TEXT("zymurgy")
};
After several minute of Unreal trying to compile, I got this error:
D:\Prog\BullCowGame-starter-kit\Source\BullCowGame\HiddenWordList.h(6) : fatal error C1001: Internal compiler error.
So, that was not a good idea
Next step, I’ll try to load things from a file, see how that works. And then, I’ll try to load them with a predicate, and see if I notice a difference at runtime.
I’m not an Unreal programmer, but I like your style of experimentation!
Loading from a file worked perfectly fine. I also added the predicate/lambda function thingy (that was new to me, and my moderate C/C++ experience), and it loaded fine too, I did not notice a difference.