Skip to content

Instantly share code, notes, and snippets.

View ssophwang's full-sized avatar

Sophia ssophwang

View GitHub Profile
{"Does": 0.0016155088852988692, "Take": 0.0016155088852988692, "Zoomed": 0.0005385029617662897, "Until": 0.0016155088852988692, "Today": 0.0005385029617662897, "Meant": 0.0005385029617662897, "Brown": 0.0005385029617662897, "Someone": 0.004308023694130318, "Exactly": 0.0010770059235325794, "SANTA": 0.0005385029617662897, "Not": 0.0016155088852988692, "Now": 0.0026925148088314485, "Hector": 0.0010770059235325794, "Anything": 0.0005385029617662897, "Candy": 0.0005385029617662897, "Laurie": 0.0005385029617662897, "FORGOTTEN": 0.0005385029617662897, "Where": 0.004308023694130318, "Copper": 0.0005385029617662897, "Just": 0.0032310177705977385, "Super": 0.0005385029617662897, "Wretch": 0.0005385029617662897, "Much": 0.0005385029617662897, "Go": 0.0005385029617662897, "Soldiers": 0.0005385029617662897, "CAPTAIN": 0.0005385029617662897, "Drippy": 0.0005385029617662897, "Turkey": 0.0005385029617662897, "BENJAMIN": 0.0005385029617662897, "zk": 0.0005385029617662897, "Dancin": 0.0005385029617662897, "Eagerly": 0.0005385
@ssophwang
ssophwang / Super_Alien.py
Created September 24, 2016 18:51
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created September 10, 2016 19:21
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created September 3, 2016 18:04
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created August 6, 2016 19:28
Super_Alien.py
from scene import *
import json
import sound
import random
import math
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
@ssophwang
ssophwang / Super_Alien.py
Created July 16, 2016 18:30
Super_Alien.py
from scene import *
import json
import sound
import random
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
jump_texture = Texture('plf:AlienBlue_jump')
@ssophwang
ssophwang / Super_Alien.py
Created July 9, 2016 18:14
Super_Alien.py
from scene import *
import json
import sound
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
jump_texture = Texture('plf:AlienBlue_jump')
@ssophwang
ssophwang / Super_Alien.py
Created July 2, 2016 19:21
Super_Alien.py
from scene import *
import json
import sound
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
jump_texture = Texture('plf:AlienBlue_jump')
@ssophwang
ssophwang / Super_Alien.py
Created June 11, 2016 16:31
Super_Alien.py
from scene import *
import json
import sound
A = Action
standing_texture = Texture('plf:AlienBlue_front')
walk_textures = [Texture('plf:AlienBlue_walk1'), Texture('plf:AlienBlue_walk2')]
jump_texture = Texture('plf:AlienBlue_jump')
@ssophwang
ssophwang / MostBeers2.py
Created June 10, 2016 11:55
MostBeers2.py
# coding: utf-8
'''
Using Depth-First Search to calculate max number of beers money can buy
In this version, one is allowed to borrow a beer at a time
'''
from collections import deque
def next_actions(rules, state):