Posts by Letícia Gabriela Cena • 37 points
4 posts
-
0
votes2
answers222
viewsQ: problem comparing strings in c language
I need to answer a question that asks to type two words, like this: is a canteen and there are 4 possible requests. Two options for food: lasagna and stroganoff; Two drink options: juice and soda. I…
casked Letícia Gabriela Cena 37 -
2
votes1
answer1308
viewsQ: python game of checkers
i have an array of a checkers game state, how can I know which pieces are threatened on the board? X5 is the threatened black parts and X6 is the threatened red parts, ie I want to know how to…
-
0
votes2
answers470
viewsQ: read the elements of an input matrix
I have a code that represents a checkerboard (8x8 matrix): print(f'ATENÇÃO: ') print(f'Insira 0 nas posições vazias do tabuleiro;') print(f'Insira 1 nas posições das peças pretas e 11 para as damas…
-
1
votes2
answers123
viewsQ: How to make an associative matrix in python 3?
I have a code that asks for a matrix 8x8, but I need in the input He asks for the values like this: matriz [A][1]: matriz [A][2]: That is, he asks for the line in letter form and the column in…