git.ucc.asn.au
/
progcomp2012.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First actual commit
[progcomp2012.git]
/
samples
/
forfax
/
main.cpp
1
#include <cstdlib>
2
#include <iostream>
3
4
#include "forfax.h"
5
6
using namespace std;
7
8
#include <stdio.h>
9
10
Forfax forfax;
11
int main(int argc, char ** argv)
12
{
13
setbuf(stdin, NULL);
14
setbuf(stdout, NULL);
15
16
if (!forfax.Setup())
17
exit(EXIT_SUCCESS);
18
19
while (forfax.MakeMove());
20
21
cerr << "Forfax threw a hissy fit, and exited!\n";
22
23
exit(EXIT_SUCCESS);
24
return 0;
25
26
27
}
UCC
git Repository :: git.ucc.asn.au