This program creates class Die, then simulates a random number ...
/usr/bin/python. # dice_python2.py. """ make a class Die with one attribute called sides, which has a default value of 6. write method called roll_die() ...
/usr/bin/python. # dice_python2.py. """ make a class Die with one attribute called sides, which has a default value of 6. write method called roll_die() ...
Dice.java. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
#!/usr/bin/env python. # DICEWARE WORD LIST FROM: # http://world.std.com/~reinhold/diceware.html. lines = """11111 a. 11112 a&p. 11113 a's. 11114 aa.
DiceGame_Dice.java. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Ejemplos de Python. GitHub Gist: instantly share code, notes, and snippets.
Download ZIP. Iteration using dice code. Raw. Dice.java. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Instantly share code, notes, and snippets. @cwfitzgerald · cwfitzgerald ... if 4 <= len(w) <= 6: wordPossiblities.append(w). word = wordPossiblities ...
Dice.java. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
A game of pig, in Python 3. GitHub Gist: instantly share code, notes, and snippets ... roll = random.randint(1,6). if roll == 1: print("You rolled a 1 ...
Download ZIP. Dice experiment Clark ps1. Raw. Dice.java. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
[De Morgan's Law](http://en.wikipedia.org/wiki/De_Morgan's_laws) is a neat law of Boolean propositional logic, helpful in every-day programming. It helps with ...
Ejemplos de programas en Batch MS-DOS. GitHub Gist: instantly share code, notes, and snippets ... SET MENSAJE=No se encontro java en %java%. GOTO End.