Functions

chess_main_driver.cpp File Reference

#include <stdio.h>
#include <string.h>
#include "chess.h"
#include "chess_printer.h"
#include "test_chess.h"
Include dependency graph for chess_main_driver.cpp:

Functions

void ui_branch ()
int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Main function evaluates the number of command line arguments. If the user passed one main switches into test mode, i.e., that the function test_branch() is called and the command line argument is handed over to this function. If no command line argument is given main switches into user interface mode and delegates the handling of this to the function ui_branch().

See also:
test_branch, ui_branch.

Here is the call graph for this function:

void ui_branch (  ) 

ui_branch handles the user interface mode of Chess.

See also:
main, test_branch.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines