monicao
3/13/2013 - 6:28 PM

hangman.rb

class Hangman

  # This class will be used to run an instance of a hangman game
  # It is only concerned with one run through of the game
  # It is not responsible for human interaction

  attr_accessor :word
  attr_accessor :chances
  attr_accessor :board

  def initialize(word)
    @word = word
    @chances = 8
  end
  
  def guess!(letter)
  end

  def board
    board = '_ ' * @word.length
    board.strip
  end

  def won?
    # true or false
  end


end