public void ConstructorTest() { MoveTuple target = new MoveTuple(); // TODO: Implement code to verify target Assert.Inconclusive("TODO: Implement code to verify target"); }
static int PlayAGame(game aGame) { int moves = 0; Random rand = new Random(DateTime.Now.Millisecond); System.Collections.Generic.List <MoveTuple> availableMoves = aGame.AvailableMoves; Console.WriteLine(aGame.ToString()); while (availableMoves.Count > 0) { moves++; int choice; if (availableMoves.Count > 1) { choice = rand.Next(0, availableMoves.Count - 1); } else { choice = 0; } MoveTuple mt = aGame.AvailableMoves[choice]; Console.WriteLine("{2} available Moves, Moving peg {0} to {1}", mt.original, mt.destination, availableMoves.Count); aGame.Move(mt.original, mt.destination); availableMoves = aGame.AvailableMoves; } return(moves); }
public void originalTest() { MoveTuple target = new MoveTuple(); int val = 0; // TODO: Assign to an appropriate value for the property Assert.AreEqual(val, target.original, "trianglePegs.game.MoveTuple.original was not set correctly."); }
public void GetLastMoveTest() { game target = new game(); MoveTuple val = null; // TODO: Assign to an appropriate value for the property Assert.AreEqual(val, target.GetLastMove, "trianglePegs.game.GetLastMove was not set correctly."); }
public void ToStringTest() { MoveTuple target = new MoveTuple(); string expected = null; string actual; actual = target.ToString(); Assert.AreEqual(expected, actual, "trianglePegs.game.MoveTuple.ToString did not return the expected value."); }
public void ConstructorTest1() { int orig = 0; // TODO: Initialize to an appropriate value int jmp = 0; // TODO: Initialize to an appropriate value int dest = 0; // TODO: Initialize to an appropriate value MoveTuple target = new MoveTuple(orig, jmp, dest); // TODO: Implement code to verify target Assert.Inconclusive("TODO: Implement code to verify target"); }
public void TestMethod1() { // // TODO: Add test logic here // game aGame = new game(); MoveTuple mt = (MoveTuple)(aGame.AvailableMoves[0]); while (aGame.AvailableMoves.Count > 0) { aGame.Move(mt.original, mt.destination); } }
List <MoveTuple> GetMoveTuple() { m_moveTupleList.Clear(); for (int i = 0; i < m_world.m_entityList.Count; i++) { if (m_world.m_entityList[i].GetExistComp("MoveComponent")) { MoveTuple tuple = new MoveTuple(); tuple.m_moveComp = (MoveComponent)m_world.m_entityList[i].GetComp("MoveComponent"); m_moveTupleList.Add(tuple); } } return(m_moveTupleList); }