f

Dependencies:   mbed 4DGL-uLCD-SE MMA8452

Revision:
0:8e3b9bb1084a
Child:
5:077b66dfe296
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/keyboard.h	Thu Mar 10 05:18:13 2022 +0000
@@ -0,0 +1,58 @@
+
+#include "globals.h"
+#include "hardware.h"
+#include "graphics.h"
+#include "doubly_linked_list.h"
+/*
+* Function to implement comparisons of data in the DLL.
+* This function allows the comparisons of chars if you input
+* chars into the doubly_linked_list. If you want you can make 
+* additional functions to compare different types of data.
+*
+* This function should be passed into the create_dLinkedList()
+* call.
+*
+*/
+int compareChar(void* input1, void* input2);
+
+/*
+* This function should intialize the keyboard and 
+* select the goal word. To pick goal word, select a word 
+* randonly from the dictionary you create in dictionary.h.
+* To create the keyboard, initialize a DLL with all the nodes
+* being the letters of the alphabet.
+*/
+void init_keyboard();
+
+/*
+* Scroll left on the keyboard.
+*/
+void moveleft();
+
+/*
+* Scroll right on the keyboard.
+*/
+void moveright();
+
+/*
+* Pick the current letter in the keyboard to use 
+* in your guess.
+*/
+void select_letter();
+
+/*
+* Removes letters from your guess that you no
+* longer want in your guess (Removes right to left).
+*/
+void remove_letter();
+
+/*
+* This function compares your guess to the secret word. If
+* you guess the correct letter in the correct spot, keep the 
+* letter displayed. If you guess the correct letter in the
+* incorrect spot, display that letter on the top of the screen.
+* Delete letters that are not in the secret word from the keyboard
+* DLL. Also should handle game winning and game losing.
+*
+*/
+void check_word();
\ No newline at end of file