Skip to content

Instantly share code, notes, and snippets.

@erj1
erj1 / gist:2843308
Created May 31, 2012 13:06
html5:starting-template
<!doctype HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
import random
roll_again_options = ['y', 'yes']
def roll_die(die_sides: int = 6):
return random.choice(range(1, die_sides + 1))
if __name__ == '__main__':
import random
LEVELS = {
'easy': 10,
'normal': 100,
'hard': 1000,
'insane': 10000
}