public turn() { if (whoseTurn == 1) { turnNumber ++; whoseTurn++; Console.ForegroundColor = ConsoleColor.Red; Console.SetCursorPosition(0, pos1); Console.Write("-->"); Console.SetCursorPosition(0, pos1 + 1);//(0, pos1 +3); Console.Write(" "); cursorMovement go = new cursorMovement(null, null); } if (whoseTurn == 2) { turnNumber++; whoseTurn = whoseTurn - 1; Console.ForegroundColor = ConsoleColor.Green; Console.SetCursorPosition(0, pos1 +1); Console.Write("-->"); Console.SetCursorPosition(0, pos1); Console.Write(" "); cursorMovement go = new cursorMovement(null, null); } /*if (whoseTurn == 3) { turnNumber ++; whoseTurn++; Console.ForegroundColor = ConsoleColor.Blue; Console.SetCursorPosition(0, pos1 +2); Console.Write("-->"); Console.SetCursorPosition(0, pos1 +1); Console.Write(" "); cursorMovement go = cursorMovement(gameBoard, turn); } if (whoseTurn == 4) { turnNumber ++; whoseTurn = whoseTurn - 3; Console.ForegroundColor = ConsoleColor.Yellow; Console.SetCursorPosition(0, pos1 +3); Console.Write("-->"); Console.SetCursorPosition(0, pos1 +2); Console.Write(" "); cursorMovement go = cursorMovement(gameBoard, turn); }*/ }
public gameBoard() { Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.WriteLine("| | | | | | |"); Console.WriteLine("+-+-+-+-+-+-+"); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" Player Uppercase: 0"); Console.SetCursorPosition(3, 9); Console.Write("B"); Console.SetCursorPosition(5, 9); Console.Write("A"); Console.SetCursorPosition(7, 9); Console.Write("A"); Console.SetCursorPosition(9, 9); Console.Write("B"); Console.ForegroundColor = ConsoleColor.Green; Console.SetCursorPosition(0, 14); Console.WriteLine(" Player Lowercase: 0"); Console.SetCursorPosition(3, 3); Console.Write("b"); Console.SetCursorPosition(5, 3); Console.Write("a"); Console.SetCursorPosition(7, 3); Console.Write("a"); Console.SetCursorPosition(9, 3); Console.Write("b"); Console.ForegroundColor = ConsoleColor.Red; cursorMovement movement = new cursorMovement(null, null); }