Exemplo n.º 1
0
        /// <summary>
        /// 推理を行う
        /// </summary>
        protected virtual void Guess()
        {
            GuessStrategyArgs args = new GuessStrategyArgs {
                Agi = Agi
            };

            LatestGuess = GuessManager.Exec(args);
        }
Exemplo n.º 2
0
        public void GuessResultTest(int guess, GuessResult expected)
        {
            GuessManager mgr = new GuessManager();

            mgr.Start(10);
            var actual = mgr.ProcessGuess(guess);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void ValidGuessTest()
        {
            GuessManager mgr = new GuessManager();

            mgr.Start();
            var actual = mgr.ProcessGuess(10);

            Assert.AreNotEqual(GuessResult.Invalid, actual);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 推理を行う
        /// </summary>
        protected override void Guess()
        {
            GuessStrategyArgs args = new GuessStrategyArgs {
                Agi = Agi
            };

            args.Items.Add("AgentStatistics", statistics);
            LatestGuess = GuessManager.Exec(args);
        }
Exemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        timeTaken    = 0f;
        switchLevels = false;
        currentLevel = 0;         // levels start from 0
        nextLevel    = 0;
        levelSuccess = false;
        begin        = false;
        guessManager = gameObject.GetComponent <GuessManager> ();
        textChanger  = gameObject.GetComponent <RoundTextChanger> ();
        ts           = timerBar.GetComponent <timerShrink> ();

        textChanger.clearScore();
        //imagesPanel.SetActive (false);

        total_time = 0f;
    }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     gm = gameObject.GetComponent <GuessManager>();
     tm = gameObject.GetComponent <textureMod>();
     ph = FindObjectOfType <persistentHelper>();
     um = FindObjectOfType <userManager>();
     // Initialize name and round indexes
     for (int i = 0; i < 3; i++)
     {
         // Deactivate all objects
         roundTextObjs[i].SetActive(false);
     }
     // Automatically setup the textures if this is not the first login
     // The Done button calls this fn the first time
     if (!ph.firstTimeSetup)
     {
         getNamesAndSetTextures();
         ph.setAnimColor(); // also change the effect color of the animation button
     }
 }
Exemplo n.º 7
0
 private void CreateGameManagerInstance()
 {
     _manager = new GuessManager();
     _manager.Start();
 }