public static void printMatrix(Checkers_LogicAndDataSection.GameBoard gb) { Checkers_LogicAndDataSection.GameBoard.Soldier localSoldier; Checkers_LogicAndDataSection.Point localPoint = new Checkers_LogicAndDataSection.Point(); for (localPoint.YCooord = 0; localPoint.YCooord < (int)Checkers_LogicAndDataSection.SessionData.m_BoardSize; localPoint.YCooord++) { for (localPoint.XCoord = 0; localPoint.XCoord < (int)Checkers_LogicAndDataSection.SessionData.m_BoardSize; localPoint.XCoord++) { localSoldier = gb.GetSoldierFromMatrix(localPoint); printSoldier(localSoldier); } } }
public static void printPoint(Checkers_LogicAndDataSection.Point pt) { System.Console.SetCursorPosition(pt.XCoord, pt.YCooord); Console.Write("C"); }