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
00001 #ifndef farkel_class_H 00002 #define farkel_class_H 00003 #include <stdio.h> /* printf */ 00004 #include <ctime> /* time_t, struct tm, difftime, time, mktime */ 00005 #include "die.h" 00006 #include "uLCD_4DGL.h" 00007 #include "PinDetect.h" 00008 00009 00010 class farkel{ 00011 00012 public: 00013 farkel(); 00014 farkel(int randomNum); 00015 void dicePlacer(int dicePlace,int identity,int gameScore); 00016 int roll(); 00017 void testPrint(int flag); 00018 void clearSc(); 00019 void mainMenu(int diceNum); 00020 int diceNumInc(int dicenum); 00021 //int whileBrake(int mainMenuFlag); 00022 int gameScoring(); 00023 bool tripCheck(); 00024 bool dubCheck(); 00025 void printfark(); 00026 int resetDie(int diceNum,int scorehold); 00027 int scoreingScreen(int gameScore); 00028 int back2MainMenu(); 00029 int butDetect(int gameScore); 00030 private: 00031 int diceColor; 00032 int identity; 00033 int score; 00034 int holder1; 00035 int holder2; 00036 00037 00038 00039 }; 00040 00041 00042 #endif
Generated on Mon Nov 21 2022 18:54:43 by
1.7.2