olistic/warriorjs

🏰 An exciting game of programming and Artificial Intelligence

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 39 minutes ago
Added to GitGenius on September 6th, 2026
Created on April 29th, 2015
Open Issues & Pull Requests: 19 (+0)
GitHub issues: Enabled
Number of forks: 499
Total Stargazers: 9,537 (+0)
Total Subscribers: 162 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

WarriorJS is a programming game that teaches JavaScript and TypeScript by having players write code to guide a warrior through tower-based puzzles.

The game presents a series of floors, each containing enemies, obstacles, and objectives like battling sludge, dodging archers, or rescuing captives. Players solve each floor by writing code that controls their warrior's actions—there is no graphical interface or manual controls. The strategy is entirely expressed through logic: players read the floor description, understand the challenge, write their solution in the Player file, and run the game to see whether their warrior survives and progresses. This approach makes programming concrete and immediately consequential, turning abstract syntax into visible success or failure.

WarriorJS suits anyone learning JavaScript or TypeScript who benefits from hands-on, goal-driven practice. Beginners can start with simple conditionals and loops on early floors, while experienced developers can optimize their solutions for perfect scores on harder challenges. The game runs locally via Node.js after installation, or can be played in a browser. The project explicitly welcomes community contributions in the form of custom towers—sets of levels that other players can install—as well as improvements to documentation, bug fixes, and new abilities or units.

The project maintains active continuous integration with automated testing. Code coverage is tracked and publicly reported. The codebase is written in TypeScript, indicating a commitment to type safety in the implementation itself. Documentation is comprehensive and organized across gameplay mechanics, available towers, and the player-facing API for controlling the warrior.