First actual commit
[progcomp2012.git] / samples / forfax / main.cpp
diff --git a/samples/forfax/main.cpp b/samples/forfax/main.cpp
new file mode 100644 (file)
index 0000000..d0cea95
--- /dev/null
@@ -0,0 +1,27 @@
+#include <cstdlib>
+#include <iostream>
+
+#include "forfax.h"
+
+using namespace std;
+
+#include <stdio.h>
+
+Forfax forfax;
+int main(int argc, char ** argv)
+{
+       setbuf(stdin, NULL);
+       setbuf(stdout, NULL);
+
+       if (!forfax.Setup())
+               exit(EXIT_SUCCESS);
+
+       while (forfax.MakeMove());
+
+       cerr << "Forfax threw a hissy fit, and exited!\n";
+       
+       exit(EXIT_SUCCESS);
+       return 0;
+
+       
+}

UCC git Repository :: git.ucc.asn.au