Skip to content

bradfeld/rogue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Rogue Clone

A text-based implementation of the classic roguelike dungeon crawler game Rogue.

100% Written by Claude 3.5 Sonnet using Cursor Composer.

Features

  • Procedurally generated dungeons
  • Turn-based gameplay
  • ASCII graphics
  • Player movement and combat
  • Items and inventory system
  • Monsters and combat

Controls

  • Arrow keys or WASD: Move player
  • i: Open inventory
  • q: Quit game
  • Enter/Space: Interact/Attack
  • A cheat code exists to automatically win the game

Game Symbols

Symbol Description
@ Player character
# Wall
. Floor
+ Door
> Stairs down
< Stairs up
M Monster (generic)
g Goblin
o Orc
T Troll
D Dragon
Đ Ancient Dragon
$ Gold
! Potion
/ Weapon
] Armor
? Scroll
= Ring
% Food
~ Water
(space) Unexplored area

Setup

  1. Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # On Unix/macOS
# or
.\venv\Scripts\activate  # On Windows
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the game:
python main.py

Credits

  • Inspired by a Friday afternoon conversation with Dan Shapiro.
  • Modeled after the Rogue game by Michael Toy and Glenn Wichman with later contributions by Ken Arnold.
  • Cursor Composer was used to write the code.
  • More info on the Rogue game can be found here.
  • Bonus video of Dan Shapiro explaining Rogue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages