src/main.c

Functions

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

Functions Documentation

function main

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

Source code

/* name : main.c
 * authors : eloi petit, matheo thomas, domitille vale
 * date : 23-06-24
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "tests_domitille.h"
#include "tests_eloi.h"
#include "tests_matheo.h"


int main(int argc, char *argv[]){
    srand(time(0));

    if(argc == 2) {
        if(strcmp(argv[1], "domitille") == 0) {
            printf("domitille\n");
            test_domi();

        } else if(strcmp(argv[1], "eloi") == 0) {
            printf("eloi\n");
            test_add_tiles();

        } else if(strcmp(argv[1], "matheo") == 0) {
            printf("matheo\n");

            // test_matheo();
            test_matheo_2();

            
        }
    } else {





    }

    return 0;
}

Updated on 2024-06-28 at 08:11:55 +0200