🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • fahad lashari
    fahad lashari
    7,693 Points

    Code challenge help please

    Posted January 18, 2017 7:27pm by fahad lashari
    fahad lashari
    7,693 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Tim rkan
    Tim rkan
    36 Points

    making healer system

    Posted January 17, 2017 8:21pm by Tim rkan
    Tim rkan
    36 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    8 Answers

  • Andrew Merrick
    Andrew Merrick
    20,151 Points

    Make Sure To Use Python3 and Not Python

    Posted January 5, 2017 3:23am by Andrew Merrick
    Andrew Merrick
    20,151 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Ammar Fatihallah
    Ammar Fatihallah
    7,417 Points

    name 'roll' is not defined

    Posted December 24, 2016 4:42am by Ammar Fatihallah
    Ammar Fatihallah
    7,417 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Gilang Ilhami
    Gilang Ilhami
    12,045 Points

    gamel.py is not running

    Posted December 17, 2016 6:04am by Gilang Ilhami
    Gilang Ilhami
    12,045 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Vidhya Sagar
    Vidhya Sagar
    1,568 Points

    Logic bummer :(

    Posted November 23, 2016 10:19am by Vidhya Sagar
    Vidhya Sagar
    1,568 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Gabriel Moreno
    Gabriel Moreno
    3,579 Points

    Silly question... Did you build the whole game?

    Posted November 1, 2016 4:09pm by Gabriel Moreno
    Gabriel Moreno
    3,579 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Mollie Pettit
    Mollie Pettit
    750 Points

    Goblin object not callable

    Posted September 1, 2016 5:20pm by Mollie Pettit
    Mollie Pettit
    750 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Harish Vadlamani
    Harish Vadlamani
    1,724 Points

    How do I run this game locally on my computer without the use of Treehouse Workspaces?

    Posted August 29, 2016 12:43pm by Harish Vadlamani
    Harish Vadlamani
    1,724 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    3 Answers

  • Edward Seibert
    Edward Seibert
    32,055 Points

    Argh! Undead monsters!

    Posted July 29, 2016 8:57pm by Edward Seibert
    Edward Seibert
    32,055 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    2 Answers

  • Marcin MÄ…czewski
    Marcin MÄ…czewski
    4,476 Points

    NameError: name 'player' is not defined when choosing to [R]est

    Posted July 21, 2016 1:03am by Marcin MÄ…czewski
    Marcin MÄ…czewski
    4,476 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Oti Oritsejafor
    Oti Oritsejafor
    3,281 Points

    How do I make weapons do different amount of damage?

    Posted June 20, 2016 11:53pm by Oti Oritsejafor
    Oti Oritsejafor
    3,281 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    2 Answers

  • Beth Singley
    Beth Singley
    3,491 Points

    str method producing weird things on attack

    Posted March 24, 2016 2:51pm by Beth Singley
    Beth Singley
    3,491 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Camille Ferré
    Camille Ferré
    3,330 Points

    Why do we have self.monster or self.monsters in the __init__ ?

    Posted March 3, 2016 8:59am by Camille Ferré
    Camille Ferré
    3,330 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Edrei Garcia
    Edrei Garcia
    1,419 Points

    In game.py, why does __init__ execute?

    Posted December 21, 2015 7:55pm by Edrei Garcia
    Edrei Garcia
    1,419 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    2 Answers

  • Austin Whitelaw
    Austin Whitelaw
    9,065 Points

    Code seems correct, but monster_turn only executes once and then player_turn every time after that

    Posted November 30, 2015 8:45pm by Austin Whitelaw
    Austin Whitelaw
    9,065 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Aleksander Trinh
    Aleksander Trinh
    1,562 Points

    init problem

    Posted November 1, 2015 12:19pm by Aleksander Trinh
    Aleksander Trinh
    1,562 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Tatiana Perry
    Tatiana Perry
    17,156 Points

    Game doesn't run locally

    Posted October 13, 2015 10:18pm by Tatiana Perry
    Tatiana Perry
    17,156 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Elisabeth Hoelzl
    Elisabeth Hoelzl
    12,206 Points

    Why is my code not working?

    Posted June 22, 2015 3:28pm by Elisabeth Hoelzl
    Elisabeth Hoelzl
    12,206 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • BRIAN WEBER
    BRIAN WEBER
    21,570 Points

    SyntaxError: invalid syntax when I try to print(self.player)

    Posted May 19, 2015 5:03am by BRIAN WEBER
    BRIAN WEBER
    21,570 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • krs dino
    PLUS
    krs dino
    Courses Plus Student 778 Points

    Unresolved atribute hit_points

    Posted May 17, 2015 7:38pm by krs dino
    krs dino
    Courses Plus Student 778 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • joleneoropilla
    joleneoropilla
    17,214 Points

    How do I resolve multiple errors in my code and get my game running?

    Posted May 9, 2015 1:59am by joleneoropilla
    joleneoropilla
    17,214 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Tristan Gaebler
    Tristan Gaebler
    6,204 Points

    Can someone review my code..

    Posted April 24, 2015 2:15pm by Tristan Gaebler
    Tristan Gaebler
    6,204 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    3 Answers

  • Igors Smirnovs
    Igors Smirnovs
    10,441 Points

    AttributeError: 'Game' object has no attribute 'monster'.

    Posted March 17, 2015 4:56pm by Igors Smirnovs
    Igors Smirnovs
    10,441 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    1 Answer

  • Iris Avalon
    Iris Avalon
    14,477 Points

    python game.py doesn't run

    Posted December 12, 2014 2:08am by Iris Avalon
    Iris Avalon
    14,477 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    3 Answers

  • Adam Tatusko
    Adam Tatusko
    16,589 Points

    Monster Attack Game of Pythonic Doom

    Posted October 12, 2014 3:46am by Adam Tatusko
    Adam Tatusko
    16,589 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    3 Answers

  • Ben Robinson
    Ben Robinson
    7,380 Points

    Can someone post the full game.py code?

    Posted October 9, 2014 5:48pm by Ben Robinson
    Ben Robinson
    7,380 Points
    • Python
    • Object-Oriented Python (retired)
    • Hack-n-Slash
    • The Final Push

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.