private TypingGameScreen() { this.game = TypingGame.Instance; InitializeComponent(); this.Show(); MainWindow.Instance.Hide(); generatePokemonText(); }
static void Main(string[] args) { var PH = new PharmacyForm(); Application.Run(PH); //FlashCard.Get1FC(PH); if (args.Length == 0) { //MneumonicSystem.Phonetic(); //TypingGame.TypingGameStart(); //WorkingMemoryGame.Play(10, 3, true);//keep constant at this value for accurate stats //Arithmetic.Game(10, 2, 11, 20); //Console.WriteLine("Do a plank or prone y"); //Timer(); //FlashCard.FlashCards(); //if scores increase run a rnd p**n file } else if (args[0] == "fc") { new Deck("").DisplayAllFC(); } else if (args[0] == "tg") { TypingGame.TypingGameStart(); } else if (args[0] == "ph") { MneumonicSystem.Phonetic(); } else if (args[0] == "read") { LoopDelegate ld = new LoopDelegate(OneRandRead); InfRounds(ld); } else if (args[0] == "wm") { WorkingMemoryGame.Play(10, 2, true);//keep constant at this value for accurate stats } else if (args[0] == "celeb") { MneumonicSystem.Celebrity(); } else if (args[0] == "ag") { Arithmetic.Game(10, 2, 4, 20); } else if (args[0] == "timer") { Timer(); } else if (args[0] == "test") { TestP(); } }
// Use this for initialization void Start() { dr = GetComponent <DragRacer>(); bd = GetComponent <BaseDef>(); kd = GetComponent <KingdomClicker>(); tg = GetComponent <TypingGame>(); grm = GetComponent <GetRevengeMain>(); ec = GetComponent <EnergyCrysis>(); cog = GetComponent <COG>(); tbui = GetComponent <TerrorBirdsUI>(); bj = GetComponent <BlackJack>(); rpg = GetComponent <RPGMain>(); // brickDestroyer = GetComponent<BrickBreaker>(); UpdateGamesList(); }
public static async Task MainAsync(string[] args) { try{ int nb; C.WL("Choose program:\n\n 1: SocketChat \n\n 2: HttpChat \n"); C.WL(" 3: TypingGame \n\n 4: Matrix \n\n 5: Randomizer"); restart: if (args.Length > 0) { U.ParseInt(args[0], out nb); Console.Clear(); } else if (!U.ParseInt(C.Read(), out nb)) { goto restart; } switch (nb) { case 1: SocketChat.Begin(cts.Token); break; case 2: LauncHttpChatServer(); break; case 3: TypingGame.Begin().Wait(); break; case 4: Matrix.Start(cts.Token); break; case 5: Randomizer.Randomize(); break; case 6: Dos.TcpFloodAttack(); break; case 7: Dos.UdpFloodAttack(); break; default: goto restart; } } catch (Exception) { EndTasks(); } finally{ await MainAsync(args); } }
public void destroyGame() { _timer.Stop(); _gametimer.Stop(); instance = null; }