コード例 #1
0
 private TypingGameScreen()
 {
     this.game = TypingGame.Instance;
     InitializeComponent();
     this.Show();
     MainWindow.Instance.Hide();
     generatePokemonText();
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
ファイル: MiniGameWeb.cs プロジェクト: MrLucas265/LakeNet
    // 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();
    }
コード例 #4
0
ファイル: Program.cs プロジェクト: llllGEM/dotnet-core
        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); }
        }
コード例 #5
0
 public void destroyGame()
 {
     _timer.Stop();
     _gametimer.Stop();
     instance = null;
 }