// Use this for initialization void Start() { //Get the position of the parent. //This is the correct position to place the object. xParent = transform.root.position.x; yParent = transform.root.position.y; //Find the Sprite Renderer for fading/recoloring purposes. spriteRenderer = GetComponent <SpriteRenderer> (); //Find the box collider so it can be removed when object is placed. polyCol = GetComponent <PolygonCollider2D> (); //Sets a range of + or - the Offset within the correct position. xRangeHigh = xParent + OFFSET; xRangeLow = xParent - OFFSET; yRangeHigh = yParent + OFFSET; yRangeLow = yParent - OFFSET; //Find the Level Manager. levelManager = FindObjectOfType <LevelManager1> (); //Find the Array Shuffer arrayShuffler = FindObjectOfType <ArrayShuffler>(); //Make sure that myAttempt starts at 0 guesses = 0; }
public void smoke() { var shuffler = new ArrayShuffler(); var input = new int[] { 30, 10, 20 }; var result = shuffler.Execute(input); Console.WriteLine(String.Join(",", result)); Assert.IsNotEmpty(result); }
public void Setup() { _shuffler = new ArrayShuffler(); }
private static Board Shuffle(Board board) { var shuffler = new ArrayShuffler(); var shuffledBoard = new Board(shuffler.Execute(board.ToIntArray())); return shuffledBoard; }