js/controllers/SecretaryProblemCtrl.js
File SecretaryProblemCtrl.js
has 307 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*global angular:true, browser:true */
(function (angular) {
'use strict';
Function generateItemValue
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.generateItemValue = function (index) {
var game = $scope.game;
var items = game.items;
var numDigits = game.numDigitsThis;
var willBeMax;
Function automaticGame
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.automaticGame = function (n, numberOfGames) {
var game = $scope.game;
var strategy;
var itemIndex;
var gameIndex;