This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Loads dictionary into memory, returning true if successful else false | |
bool load(const char *dictionary) | |
{ | |
// Initialize hash table | |
for (int i = 0; i < N; i++) | |
{ | |
hashtable[i] = NULL; | |
} | |
// Open dictionary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int pushToEnd(int); | |
int pushToStart(int); | |
int setDefault(int*); | |
typedef struct node{ | |
int num; | |
struct node *next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
#include "main.h" | |
#include "snake.h" | |
#include "apple.h" | |
void handle_events(SDL_Event* e); | |
void quit(void); | |
SDL_Window *window; |