Rosa Santos Posted May 10, 2023 at 10:06 AM Report #630879 Posted May 10, 2023 at 10:06 AM (edited) aloooo tenho que fazer um trabalho de programação, e estou com imensas dificuldades em fazer a opção de jogo computer vs computer em C no jogo do galo. Agradecia imenso se alguém me pudesse ajudar. Edited May 10, 2023 at 09:45 PM by pwseo tópico mais descritivo
antseq Posted May 10, 2023 at 01:26 PM Report #630882 Posted May 10, 2023 at 01:26 PM a opção de jogo computer vs computer, é exactamente igual a opção de jogo human x computer em que na hora do input "human" troca pela função que já tem "computer" a tomar decisões de jogo agora do "outro lado". se tiver um tabuleiro vazio e jogar com as "peças" "X" e "O", tanto faz a função "computer" jogar com "X" ou com "O" desde que receba como parâmetro "X" ou "O". 1 Report
Rosa Santos Posted May 10, 2023 at 06:26 PM Author Report #630886 Posted May 10, 2023 at 06:26 PM e posso fazer isso a utilizar ciclos?
Rui Carlos Posted May 10, 2023 at 08:47 PM Report #630888 Posted May 10, 2023 at 08:47 PM Tens a parte de computador contra humano feita? 1 Report Rui Carlos Gonçalves
Rosa Santos Posted May 12, 2023 at 09:17 AM Author Report #630905 Posted May 12, 2023 at 09:17 AM simm
Rui Carlos Posted May 12, 2023 at 03:15 PM Report #630910 Posted May 12, 2023 at 03:15 PM Podes partilhar o código? Se tens essa parte feita sem ciclos, também consegues fazer o computer vs computer sem ciclos. Suspeito é que vais ficar com código menos estruturado. Rui Carlos Gonçalves
Rosa Santos Posted May 13, 2023 at 07:24 PM Author Report #630921 Posted May 13, 2023 at 07:24 PM preciso de fazer com ciclos
thoga31 Posted May 13, 2023 at 08:17 PM Report #630922 Posted May 13, 2023 at 08:17 PM Partilha o teu código actual para podermos te ajudar de forma mais concreta. Knowledge is free!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now