Below are a couple of basic code samples from smaller projects and tests I’ve worked on in the past. These are pretty simple, and mainly meant to give an idea as to my coding style, and commenting habits.
Basic Rock Paper Scissors game against AI Opponent, best of 5 series. Using C++
Table sorting exercise, instructions included at top. Using Lua
Flamethrower and Flamethrower Fire classes for the Flamethrower super weapon from Snowball Effect. Using UnrealScript (a C++ based scripting language). Note that UnrealScript typically relies heavily on inheritance from other classes so there are about 5-6 other Flamethrower related classes that aren’t provided here.