About 1,640 results
Open links in new tab
  1. python - Simple game of Hangman - Code Review Stack Exchange

    Mar 2, 2016 · I saw it being used in some Python code before that involved an English words reference, but I don't know how accessing it's built-in dictionary works. chosen_word = …

  2. python - OOP Hangman Game - Code Review Stack Exchange

    Aug 11, 2021 · \$\begingroup\$ I don't know much about the technical aspects of python, but that looks like pretty code to me. I have three suggestions, which have nothing to do with your …

  3. A first "Hangman" game in Python - Code Review Stack Exchange

    Aug 26, 2019 · In Python 3, print is a function call, yet you're using "detached braces": print ("Please input [y] or [n]") All this does is momentarily make your code look like Python 2.

  4. Hangman game class in Python - Code Review Stack Exchange

    Aug 31, 2017 · game = Hangman() game.setup() The rest of my review is going to assume you've changed it all to work that way, but haven't changed anything else. I'll add a self parameter to …

  5. python - Command Line Hangman game - Code Review Stack …

    Apr 13, 2025 · If I am interpreting the code correctly, every instance of a guessed letter appearing in the secret word is flagged and revealed for that single guess. A variation of the game might …

  6. “Hangman” game in Python - Code Review Stack Exchange

    Jul 29, 2016 · I have been using Python 3 to learn programming, and this is a very basic task, but I want to gain good programming patterns/habits at the very beginning. import sys import …

  7. python - Hangman Game with Graphics - Code Review Stack …

    Apr 4, 2018 · hangman.check() if hangman.check() == "Winner": In the first line, you disregard the return value of the check function call. The second line properly calls and uses the return …

  8. Simple Python hangman game - Code Review Stack Exchange

    Jul 19, 2016 · PEP 8 - Style Guide for Python Code. As to pick the lowest hanging fruits.Consistency is a key part of programming, as it greatly increases readability.

  9. Python Hangman Game - Code Review Stack Exchange

    Feb 5, 2016 · This is my hangman game code for my GCSE computer science coursework. It has been submitted but I was wondering if there is anyway to improve it. import random import …

  10. Python Beginner - Basic Hangman Game Using Turtle - Code …

    Dec 21, 2020 · \$\begingroup\$ The file path was a compatibility issue when writing the original console-based game that Visual Studio Code was unable to fetch the words.txt file in the …

Refresh