Skip to content

Instantly share code, notes, and snippets.

class WordNgram{
private int size;
private String[] words ={};
public WordNgram(int size){
this.size = size;
}
public WordNgram(int size, String words){
this.size = size;
@oleander
oleander / BlackJack
Created September 20, 2012 19:15 — forked from anonymous/BlackJack
BlackJack haskell
module BlackJack where
import Cards
import Wrapper
import Test.QuickCheck
import System.Random
{- 3.2
size hand 2 = size (some card (Numeric 2) Hearts)(some(card Jack Spades) Empty))
= 1 + size (some(card Jack Spades)Empty)) = 1 + 1 + size(Empty) = 1 + 1 + 0 = 2