#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
#include "CardLinkedList.h"
int main(int argc, char *argv[])
{
CardLinkedList hand;
int i;
// make some cards and put them in the hand
// this is by no means a full set of test cases!!!
for(i=0;i<10;i++)
hand.addHead(new Card(0,i));
for(i=0;i<10;i++)
hand.addTail(new Card(1,i));
hand.printList();
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgojaW5jbHVkZSA8Y3N0ZGxpYj4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2luY2x1ZGUgIkNhcmRMaW5rZWRMaXN0LmgiCgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogIAogIENhcmRMaW5rZWRMaXN0IGhhbmQ7ICAgICAKICBpbnQgaTsKICAvLyBtYWtlIHNvbWUgY2FyZHMgYW5kIHB1dCB0aGVtIGluIHRoZSBoYW5kCiAgLy8gdGhpcyBpcyBieSBubyBtZWFucyBhIGZ1bGwgc2V0IG9mIHRlc3QgY2FzZXMhISEgICAKICAJCiAgZm9yKGk9MDtpPDEwO2krKykKICAJaGFuZC5hZGRIZWFkKG5ldyBDYXJkKDAsaSkpOwogICAgCiAgZm9yKGk9MDtpPDEwO2krKykKICAJaGFuZC5hZGRUYWlsKG5ldyBDYXJkKDEsaSkpOwogIAogIGhhbmQucHJpbnRMaXN0KCk7Cg==