Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-uLCD-SE PinDetect mbed
Diff: farkel_class.h
- Revision:
- 0:09b7e6aa75a9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/farkel_class.h Tue Nov 30 18:58:54 2021 +0000
@@ -0,0 +1,42 @@
+#ifndef farkel_class_H
+#define farkel_class_H
+#include <stdio.h> /* printf */
+#include <ctime> /* time_t, struct tm, difftime, time, mktime */
+#include "die.h"
+#include "uLCD_4DGL.h"
+#include "PinDetect.h"
+
+
+class farkel{
+
+ public:
+ farkel();
+ farkel(int randomNum);
+ void dicePlacer(int dicePlace,int identity,int gameScore);
+ int roll();
+ void testPrint(int flag);
+ void clearSc();
+ void mainMenu(int diceNum);
+ int diceNumInc(int dicenum);
+ //int whileBrake(int mainMenuFlag);
+ int gameScoring();
+ bool tripCheck();
+ bool dubCheck();
+ void printfark();
+ int resetDie(int diceNum,int scorehold);
+ int scoreingScreen(int gameScore);
+ int back2MainMenu();
+ int butDetect(int gameScore);
+ private:
+ int diceColor;
+ int identity;
+ int score;
+ int holder1;
+ int holder2;
+
+
+
+ };
+
+
+#endif
\ No newline at end of file