Simple fun program on tree, tries to guess what you guessed. Works only on Linux.
Binary tree data structure. For average wood enjoyers.
Constructs and destructs tree:
stack *myCoolTree = treeConstructor();
treeDestructor(myCoolTree);
Returns pointer to root of tree:
node *coolRoot = treeRoot(myCoolTree);
Inserts element in tree:
treeInsert(myCoolTree, 1);
Inserts element in subtree (Pushes to node):
pushLeafToNode(coolRoot, 2);
Pushes element in root:
treeRootPush(myCoolTree, 12);
Dumps info about tree in file:
treeDump(myCoolTree);
First clone repo:
git clone "https://github.com/flopsreallygotit/Tree.git"
To play in akinator switch to Tree/Akinator/ and write:
make
./main