70,000 words for Bulls and Cows

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 :slight_smile:

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 :slight_smile:

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.

1 Like

I’m not an Unreal programmer, but I like your style of experimentation!

1 Like

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.

Privacy & Terms