#include <stdio.h>
#include <string.h>
#include <stdlib.h>             /* for system("clear") */

#define NUM_CATEGORIES 5
#define NUM_QUESTIONS 4
#define STRING_SIZE 26 

void printWelcome(void)
{
    printf("Welcome to C Jeopardy!\n\n");
}

void displayGrid(int grid[][NUM_QUESTIONS], char categories[][STRING_SIZE])
{
}

void getName(char name[])
{
    printf("Enter your name: ");
    scanf("%5s", name);
}

void getRowCol(int *cat, int *value)
{
}

int processQuestion(int row, int col, char questions[][NUM_QUESTIONS][STRING_SIZE], char answers[][NUM_QUESTIONS][STRING_SIZE])
{
}

int questionsRemain(int grid[][NUM_QUESTIONS])
{
}

void playJeopardy()
{
    char categories[NUM_CATEGORIES][STRING_SIZE] = 
         { "Data Types", "Selection", "Loops", "Arrays", "Functions" };
    char questions[NUM_CATEGORIES][NUM_QUESTIONS][STRING_SIZE] =
         { {"Holds counting numbers", "Holds real numbers", "Holds letters", "Holds booleans"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"} };
    char answers[NUM_CATEGORIES][NUM_QUESTIONS][STRING_SIZE] =
         { {"int", "double", "char", "int"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"},
             {"1", "2", "3", "4"} };
    int grid[NUM_CATEGORIES][NUM_QUESTIONS] =
         { {100, 200, 300, 400}, 
             {100, 200, 300, 400}, 
             {100, 200, 300, 400}, 
             {100, 200, 300, 400}, 
             {100, 200, 300, 400} };
    char name[STRING_SIZE];
    int row, col;
    int score = 0;

    getName(name);

    printf("%s's final score: %d\n", name, score);
}

void testCases(void)
{
}

int main(void)
{
    testCases();
    playJeopardy();
    return 0;
}