Skip to content

Instantly share code, notes, and snippets.

@hahastudio
Created March 5, 2013 04:30
Show Gist options
  • Save hahastudio/5088016 to your computer and use it in GitHub Desktop.
Save hahastudio/5088016 to your computer and use it in GitHub Desktop.
东南西北
#coding:utf-8
from random import choice
paper = [{'E': "天才", 'S': "笨蛋", 'W': "猪八戒", 'N': "大师兄"}, {'E': "Hentai", 'S': "绅士", 'W': "高富帅", 'N': "矮穷挫"}]
command = raw_input("Please input Direction and count, like: W25\n>>> ")
direction = command[0]
count = choice([0, 1]) + int(command[1:])
print paper[count % 2][direction]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment