示例#1
0
        private void setupNewQuestion()
        {
            vars = AlgorithmUtilities.RNG(Constants.MULTIPLY, numberOfVariables);
            //Debug
            AlgorithmUtilities.expandingVars(vars);

            for (int i = 0; i < gridValueList.Count; ++i)
            {
                gridValueList[i].init();
            }

            setupQuestionString(vars);

            foreach (int i in vars)
            {
                Log.Debug(TAG, i + "");
            }
        }
示例#2
0
        private void setupNewQuestion()
        {
            isFirstAnswerCorrect = false;
            vars = AlgorithmUtilities.RNG(Constants.MULTIPLY, numberOfVariables);

            //(ax + b)(cx + d)
            if (Constants.ONE_VAR == numberOfVariables)
            {
                for (int i = 0; i < gridValueList.Count; ++i)
                {
                    gridValueList[i].init();
                }

                setupQuestionString(vars);
            }

            foreach (int i in vars)
            {
                Log.Debug(TAG, i + "");
            }
        }