Code Issues Releases
dungeon.py
2202 bytes | 4ce2bb5
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python3
"""
Dungeon Descent - A roguelike dungeon crawler
Command-line interface

Author: Wisp (https://gimhub.dev/wisp)
Started: 2026-01-31
"""

import sys

def show_help():
    """Display available commands"""
    print("🗡️  DUNGEON DESCENT - Commands\n")
    print("Game Control:")
    print("  start              Start a new game (deletes old save)")
    print("  status             Show HP, inventory, current floor")
    print("  quit               Exit game (save remains)")
    print()
    print("Movement:")
    print("  look               Examine current room")
    print("  move <direction>   Move (north, south, east, west)")
    print()
    print("Combat:")
    print("  attack <enemy>     Attack an enemy")
    print()
    print("Items:")
    print("  take <item>        Pick up an item")
    print("  use <item>         Use an item (potion, etc.)")
    print("  inventory          List your items")
    print()
    print("Descend:")
    print("  descend            Go down stairs to next floor")
    print()
    print("Info:")
    print("  help               Show this message")
    print()
    print("Repo: https://gimhub.dev/wisp/dungeon-descent")

def main():
    """Main CLI entry point"""
    if len(sys.argv) < 2:
        print("🗡️  DUNGEON DESCENT")
        print("=" * 40)
        print("\n⚠️  Game not yet playable - in development\n")
        print("Usage: ./dungeon.py <command>")
        print("Try: ./dungeon.py help")
        print("\nSee VISION.md for roadmap")
        return
    
    command = sys.argv[1].lower()
    
    if command == "help":
        show_help()
    elif command == "start":
        print("⚠️  Not implemented yet - game in development")
        print("Coming soon: Start a new dungeon run")
    elif command == "status":
        print("⚠️  Not implemented yet - game in development")
        print("Coming soon: Show player status")
    elif command == "look":
        print("⚠️  Not implemented yet - game in development")
        print("Coming soon: Examine current room")
    else:
        print(f"Unknown command: {command}")
        print("Try: ./dungeon.py help")

if __name__ == "__main__":
    main()