Lets take a look at building an abstraction over a character controller in our 2D platforming game. The goal of this refactoring and abstraction pattern is to improve the testability and modularity of the character controller.
Lets explore this new health tracking component we’ve built by introducing the Unity Test Runner to our project. The Unity Test Runner allows you to add a variety of NUnit tests to your project that allow you to create Edit and Play mode tests.
Testing code is important. It ensures that the code you just wrote works, but more importantly it serves as documentation about exactly what your code does and ensures that after months of maintenance and changes that the code you haven’t touched in months still does what you think.
Lets explore how we might build a trie data structure. A trie is a tree that is used to represent strings (or really any enumerable type) in a way that allows it to be easily searched in a way where it can provide potential answers given a prefix.
This is an old concept I made years ago to experiment with heating a planet. I discontinued work on this specific concept shortly after recording this, the design was not a good one, but I think it’s still interesting.