A GitHub user by the name of bhassen99¬†created a game of chess using PowerShell that serves as a good study tool for functions and classes.
The script notes list PowerShell 5.0 as a requirement to run. Here’s a screenshot from the author¬†of how the script looks running:
One of my favorite ways to learn is to reverse-engineer something that is already working and see how the pieces all fit together. However, sometimes it’s hard to find a script that is written well enough to understand without using too many “over my head” concepts.
This chess script is a good example of code that I can understand¬ and shows concepts I’ve wanted to see in action, namely classes and functions in PowerShell.