Code Warrior is a classic RPG game that you play by writing code. The game incorporates all of the classic themes that have made games in this genre so successful, while also providing a learning experience. The objective of the game is to reinforce basic programming concepts, and thus every action in the game is performed by writing code. The player will engage in scripted ‘battles’ where they must utilize pre-defined variables and methods in a logical way to defeat the enemy. Each enemy will have an attack pattern that is visible to the player, and the goal is to design a basic algorithm to counter it. Therefore each enemy attack can be seen as a ‘bug’ in the code, where the player algorithm is the ‘patch’.
You are given an API of functions and variables pertaining to actions common in RPG games. You must utilize your knowledge of programming to engage in battle and strategize similar to how you would a traditional RPG. All code is written into the text editor at the bottom left of the screen. Everything inside the text editor is exucuted upon clicking 'submit'.
Jason Allen, Shabir Ghulam
