/// <summary> /// 推理を行う /// </summary> protected virtual void Guess() { GuessStrategyArgs args = new GuessStrategyArgs { Agi = Agi }; LatestGuess = GuessManager.Exec(args); }
public void GuessResultTest(int guess, GuessResult expected) { GuessManager mgr = new GuessManager(); mgr.Start(10); var actual = mgr.ProcessGuess(guess); Assert.AreEqual(expected, actual); }
public void ValidGuessTest() { GuessManager mgr = new GuessManager(); mgr.Start(); var actual = mgr.ProcessGuess(10); Assert.AreNotEqual(GuessResult.Invalid, actual); }
/// <summary> /// 推理を行う /// </summary> protected override void Guess() { GuessStrategyArgs args = new GuessStrategyArgs { Agi = Agi }; args.Items.Add("AgentStatistics", statistics); LatestGuess = GuessManager.Exec(args); }
// 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; }
// 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 } }
private void CreateGameManagerInstance() { _manager = new GuessManager(); _manager.Start(); }