johntao / console-snake

A text-based snake game
2 stars 0 forks source link

Bug fixed: win/ loss condition, level up condition, level cap error #14

Closed johntao closed 2 years ago

johntao commented 2 years ago

Level cap was caused by "Tomlyn.Extensions.Configuration" While performing ToModel, the extension method would try to merge Yaml list into existed list by default The solution was to remove the list initializer for default values. Then, add default values in the IHostBuilder.ConfigureServices

3b85bf3b9f6722283cff88a48c4043b65cf4b3ed 22de7f39cb1705c93c69cff19e216325ce93eb9a