Skip to content

Instantly share code, notes, and snippets.

View ssophwang's full-sized avatar

Sophia ssophwang

View GitHub Profile
@ssophwang
ssophwang / Mostbeers.py
Created June 10, 2016 11:55
Mostbeers.py
# coding: utf-8
'''
Using Depth-First Search to calculate max number of beers money can buy
'''
from collections import deque
def next_actions(rules, state):
actions = []
@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):
@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 / 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 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 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 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 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 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 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')]