Example #1
0
    public static void Jogador1()
    {
        Console.ForegroundColor = ConsoleColor.White;
        Console.WriteLine("              Digite uma casa");
        string Valor = Console.ReadLine();

        for (int i = 0; i < 3; i++)
        {
            for (int j = 0; j < 3; j++)
            {
                if (Valor == _Tabua[i, j])
                {
                    _Tabua[i, j] = "X";
                }
            }

            if (i == 2)
            {
                Console.Clear();
                Verifica.Verifica1();
                Tabuleiro.PreencherTabuleiro();
                Jogador2();
            }
        }
    }
Example #2
0
    public static void Player()
    {
        Console.WriteLine("Digite Uma casa para jogar.");
        _Val = Console.ReadLine();

        for (int i = 0; i < 3; i++)
        {
            for (int j = 0; j < 3; j++)
            {
                if (_Tabua[i, j] == _Val)
                {
                    _Tabua[i, j] = "X";
                    Console.Clear();
                    PreencherTabuleiro();
                    Verifica.Verifica1();
                    Computa();
                }
            }
        }
    }