예제 #1
0
        private void butIniciaPartida_Click(object sender, EventArgs e)
        {
            //Inicia A partida
            Jogo.IniciarPartida(Convert.ToInt32(txbIdJogador.Text), txbSenhaJogador.Text);

            ListarJogadores();
            ConsultarMao();
            ExibirTabuleiro();

            int idPartida = Convert.ToInt32(txbIdPartida.Text);

            txbVez.Text = Jogo.VerificarVez(idPartida);
        }
예제 #2
0
        public bool VerificaVez()
        {
            ConsultarMao();
            txbVez.Text = Jogo.VerificarVez(Convert.ToInt32(txbIdPartida.Text));

            string id       = txbIdJogador.Text;
            int    idPart   = Convert.ToInt32(txbIdPartida.Text);
            string textoVez = Jogo.VerificarVez(idPart);

            textoVez = textoVez.Replace("\r\n", ",");
            string[] vetVez = textoVez.Split(',');

            if (vetVez[1] == id)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #3
0
        private void ButTemp_Click(object sender, EventArgs e)
        {
            int idPart = Convert.ToInt32(txbIdPartida.Text);

            txbRef.Text = Jogo.VerificarVez(idPart);
        }