SKUNK is a console game written in Java built for BCIT's Introduction to Software Development II course meant to demonstrate our understanding of polymorphism and inheritance.
You can see the original Java code here. But I've rewritten it in JS so that you can play it below!
The fun part of rewriting the JS game was that the original Java code relied heavily on while loops and iterators for the implementation. In JS, I had to change all of that to callbacks to allow user input.
I also built a new Render class with static methods to add new DOM nodes, rather than using React for updating. The original game wrote to the Java console, and the new implementation copies that pattern by successively adding new nodes to the game div.