Math 77D: Lab

Teaching Assistants: Ernie Esser and Jason Wilkinson
Emails:
Lab: Th 2:00 - 3:20 in RH 421 (PRISM Lab)
Office Hours: Th 3:30 in RH 421 or RH 425 (or by appointment)


Python References:

python.org
portablepython.com
Dive Into Python
Quick Reference

Lab Projects:

Adaptive Learning Lab Project 1 (Due May 17 before class)
Project 2: Frankenpawn (Due May 31 before class)

Sample Python Code:

cupcake.py Plays cupcake with optimal strategy
cp1.py Plays cupcake with optimal strategy or poison with random strategy
cp2.py Plays cupcake or poison with optimal strategy
cp3.py Plays cupcake or poison with different combinations of human and computer players
cp4.py Plays cupcake or poison with different combinations of human and computer players and also random and optimal computer strategies
nim.py Extends cp4.py to the game of Nim

cupcake_adaptive_learning_scaffold.py Adaptive learning framework for cupcake game
cupcake_adaptive_learning.py And the completed version
cp_framework.py Another adaptive learning framework for cupcake that is more like cp4.py
cup.py And the completed version

hexapawn_framework.py Adaptive learning framework for hexapawn

hexapawn.py Completed adaptive learning program for hexapawn

Frankenpawn limbs

computer move
play game
human move
update board and repr
is game over
play game
human move
possible moves
human move
update board
update matchbox and choose move and init
update_board
computer move

frankenpawn.py Complete program assembled from limbs (plus debugging)