taylorjg / pentominoes-cs

Solve Dana Scott's pentomino problem in C# using Donald E. Knuth's DLX (Dancing Links)
1 stars 0 forks source link

Missing 'Immutable' Errors #2

Open kenofori opened 5 years ago

kenofori commented 5 years ago

Hi there,

I imported this library in Unity and got these errors error CS0234: The type or namespace name 'Immutable' does not exist in the namespace 'System.Collections' (are you missing an assembly reference?)

So i imported this from nuget but error is still there. https://www.nuget.org/packages/System.Collections.Immutable/

Please advise

Update: Looks like Unity Nuget plugin didnt work well with immutable and perhaps thats why there is a unity port https://github.com/SuperIzzo/Unity3D-Immutable-Collections Same goes for DxLib nuget doesnt seem to generate .net standard library.

I believe that rewriting whole DxLib to work well with Unity'd be asking for too much. So if you ever have free time, please do consider making it work with Unity.

Thanks

taylorjg commented 5 years ago

Hi,

Well, you don't have to use Immutable collections. I added them because I prefer to write code in the functional style for the most part. Here is the latest version of this repo before I switched over to Immutable collections.

With regards to DlxLib, I started playing around with a version built for netstandard1.4 a couple of years ago but never got round to releasing it. You can find the code here. You could give that a try and let me know how you get on. I don't think there were any changes to the API so it should be straightforward.

Regards, Jon