Skip to content

Instantly share code, notes, and snippets.

Function call: playHand({'a': 2, 'p': 1, 'r': 1, 'e': 2, 't': 1}, '<edX internal wordList>', 7)
Test 5: Full hand transcript - using all letters
Your output:
Current Hand: a a p r e e t
Enter word, or a "." to indicate that you are finished: pear
"pear" earned 24 points. Total: 24 points
Current Hand: a e t
Enter word, or a "." to indicate that you are finished: tea
"tea" earned 33 points. Total: 33 points
Function call: playHand({'a': 2, 'p': 1, 'r': 1, 'e': 2, 't': 1}, '<edX internal wordList>', 7)
Test 5: Full hand transcript - using all letters
Your output:
Current Hand: a a p r e e t
None
Enter word, or a "." to indicate that you are finished: pear
"pear" earned 24 points. Total: 24 points
Current Hand: a e t
None
Welcome to the game Hangman!
I am thinking of a word that is 7 letters long
-----------
You have 8 guesses left
Available Letters: abcdefghijklmnopqrstuvwxyz
Please guess a letter: A
Good guess: _ _ _ _ _ a_
-----------
You have 8 guesses left
Available Letters: bcdefghijklmnopqrstuvwxyz
@max-giro
max-giro / goodfilms_angular_app.html
Created August 21, 2012 01:01 — forked from geelen/goodfilms_angular_app.html
Goodfilms Angular App example
<html ng-app="goodfilms">
<!-- ... -->
<body ng-controller="FrameController">
<header> <!-- Logo and menu buttons --> </header>
<div id="stage" ng-controller="FeedController">
<ul class="events">
<li class="event" ng-repeat="film in films">
@max-giro
max-giro / pre-loginproperties_it.properties
Created August 14, 2012 19:35
Italian countly_pre-loginproperties_it.properties
#placeholders
placeholder.username = Nome utente_txss
placeholder.password = Password_txss
placeholder.email = Email_txss
placeholder.again = Di nuovo_txss
#login
login.title = Accedi_txss
login.forgot = ho dimenticato la mia password_txss
login.result = Accesso Fallito_txss
@max-giro
max-giro / directives.js
Created August 14, 2012 14:02 — forked from abourget/directives.js
Hammer.js integration with AngularJS
/**
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
*
* This ties in the Hammer events to attributes like:
*
* hm-tap="add_something()"
* hm-swipe="remove_something()"
*
* and also has support for Hammer options with:
*
@max-giro
max-giro / new_bashrc.sh
Created August 11, 2012 19:31 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful. Now a repo: https://github.com/josephwecker/bashrc_dispatch
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Now a repo with faster code- please refer to https://github.com/josephwecker/bashrc_dispatch - thanks gioele
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
@max-giro
max-giro / new_bashrc.sh
Created August 11, 2012 19:31 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful. Now a repo: https://github.com/josephwecker/bashrc_dispatch
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Now a repo with faster code- please refer to https://github.com/josephwecker/bashrc_dispatch - thanks gioele
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
@max-giro
max-giro / gist:3291985
Created August 8, 2012 04:10 — forked from paulirish/gist:1551766
my zsh prompt with titlebar text setting
#
# my zsh theme with iTerm titlebar manip.
# see video to see the bug I have.. any help would be HUGELY appreciated :)
# http://youtu.be/U-h9XCCq0q4
#
# also
# https://github.com/sjl/oh-my-zsh/
# http://sage.ucsc.edu/xtal/iterm_tab_customization.html
@max-giro
max-giro / osx_lion_rail_setup.md
Created August 6, 2012 20:31 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL