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
farkel_class.h
- Committer:
- jwalker366
- Date:
- 2021-11-30
- Revision:
- 0:09b7e6aa75a9
File content as of revision 0:09b7e6aa75a9:
#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