+ Forfax::Status move = forfax.Setup();
+
+
+ while (move == Forfax::OK)
+ {
+ move = forfax.MakeMove();
+ }
+
+ switch (move)
+ {
+ case Forfax::OK:
+ cerr << argv[0] << " Error - Should never see this!\n";
+ break;
+ case Forfax::NO_NEWLINE:
+ cerr << argv[0] << " Error - Expected a new line!\n";
+ break;
+ case Forfax::EXPECTED_ATTACKER:
+ cerr << argv[0] << " Error - Attacking piece does not exist on board!\n";
+ break;
+ case Forfax::UNEXPECTED_DEFENDER:
+ cerr << argv[0] << " Error - Unexpected defending piece on board!\n";
+ break;
+ case Forfax::NO_ATTACKER:
+ cerr << argv[0] << " Error - Couldn't find attacker in list of pieces!\n";
+ break;
+ case Forfax::NO_DEFENDER:
+ cerr << argv[0] << " Error - Couldn't find defender in list of pieces!\n";
+ break;