teaching machines

CS 330 Lecture 18 – Types

March 11, 2015 by . Filed under cs330, lectures, spring 2015.

Agenda

Program This

Write pseudocode to calculate a score for a given hand in Black Jack. In this game, jacks, queens, and kings are worth 10, numeric cards (2-9) are worth their numeric value, and aces are worth either 1 or 11. The score should be maximized, without exceeding 21.

What sort of data structure(s) would you use in C to implement this scoring routine?

Code

Haiku

on human typing
Don’t give in to types
An X is more like a Y
Than either’s like U