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@0:09b7e6aa75a9, 2021-11-30 (annotated)
- Committer:
- jwalker366
- Date:
- Tue Nov 30 18:58:54 2021 +0000
- Revision:
- 0:09b7e6aa75a9
for sub;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jwalker366 | 0:09b7e6aa75a9 | 1 | #ifndef farkel_class_H |
| jwalker366 | 0:09b7e6aa75a9 | 2 | #define farkel_class_H |
| jwalker366 | 0:09b7e6aa75a9 | 3 | #include <stdio.h> /* printf */ |
| jwalker366 | 0:09b7e6aa75a9 | 4 | #include <ctime> /* time_t, struct tm, difftime, time, mktime */ |
| jwalker366 | 0:09b7e6aa75a9 | 5 | #include "die.h" |
| jwalker366 | 0:09b7e6aa75a9 | 6 | #include "uLCD_4DGL.h" |
| jwalker366 | 0:09b7e6aa75a9 | 7 | #include "PinDetect.h" |
| jwalker366 | 0:09b7e6aa75a9 | 8 | |
| jwalker366 | 0:09b7e6aa75a9 | 9 | |
| jwalker366 | 0:09b7e6aa75a9 | 10 | class farkel{ |
| jwalker366 | 0:09b7e6aa75a9 | 11 | |
| jwalker366 | 0:09b7e6aa75a9 | 12 | public: |
| jwalker366 | 0:09b7e6aa75a9 | 13 | farkel(); |
| jwalker366 | 0:09b7e6aa75a9 | 14 | farkel(int randomNum); |
| jwalker366 | 0:09b7e6aa75a9 | 15 | void dicePlacer(int dicePlace,int identity,int gameScore); |
| jwalker366 | 0:09b7e6aa75a9 | 16 | int roll(); |
| jwalker366 | 0:09b7e6aa75a9 | 17 | void testPrint(int flag); |
| jwalker366 | 0:09b7e6aa75a9 | 18 | void clearSc(); |
| jwalker366 | 0:09b7e6aa75a9 | 19 | void mainMenu(int diceNum); |
| jwalker366 | 0:09b7e6aa75a9 | 20 | int diceNumInc(int dicenum); |
| jwalker366 | 0:09b7e6aa75a9 | 21 | //int whileBrake(int mainMenuFlag); |
| jwalker366 | 0:09b7e6aa75a9 | 22 | int gameScoring(); |
| jwalker366 | 0:09b7e6aa75a9 | 23 | bool tripCheck(); |
| jwalker366 | 0:09b7e6aa75a9 | 24 | bool dubCheck(); |
| jwalker366 | 0:09b7e6aa75a9 | 25 | void printfark(); |
| jwalker366 | 0:09b7e6aa75a9 | 26 | int resetDie(int diceNum,int scorehold); |
| jwalker366 | 0:09b7e6aa75a9 | 27 | int scoreingScreen(int gameScore); |
| jwalker366 | 0:09b7e6aa75a9 | 28 | int back2MainMenu(); |
| jwalker366 | 0:09b7e6aa75a9 | 29 | int butDetect(int gameScore); |
| jwalker366 | 0:09b7e6aa75a9 | 30 | private: |
| jwalker366 | 0:09b7e6aa75a9 | 31 | int diceColor; |
| jwalker366 | 0:09b7e6aa75a9 | 32 | int identity; |
| jwalker366 | 0:09b7e6aa75a9 | 33 | int score; |
| jwalker366 | 0:09b7e6aa75a9 | 34 | int holder1; |
| jwalker366 | 0:09b7e6aa75a9 | 35 | int holder2; |
| jwalker366 | 0:09b7e6aa75a9 | 36 | |
| jwalker366 | 0:09b7e6aa75a9 | 37 | |
| jwalker366 | 0:09b7e6aa75a9 | 38 | |
| jwalker366 | 0:09b7e6aa75a9 | 39 | }; |
| jwalker366 | 0:09b7e6aa75a9 | 40 | |
| jwalker366 | 0:09b7e6aa75a9 | 41 | |
| jwalker366 | 0:09b7e6aa75a9 | 42 | #endif |