@ Adak and Click_me! Thank you so much for your help! :) Have a blessed day! Thank you thank you thank you! :D
Type: Posts; User: ervinako
@ Adak and Click_me! Thank you so much for your help! :) Have a blessed day! Thank you thank you thank you! :D
I have this final code anyone check it?
#include <stdio.h>
int main ()
{
Last question?
Declaring the in declaring the winner the one who picks the last stick will be the looser not the one who have no more to pick..
Any suggestion? :)
rows[rowChosen-1] == 0;
This doesnt delete any of sticks in a row.
One problem also is, when it declared the looser the looser will be the one who picks the
last stick not the one who is not picking the stick anymore..
It deleted the row :( i wanted that the row is still there but its not part of the game anymore..
anyone? :(
#include <stdio.h>
int main ()
{
@Adak, oh the program works sorry for not reading it.. now i know.
But i wanted that the row1: (empty) and it not part of the game anymore,
do you have an idea?..
#include <stdio.h>
:)
What are you trying to say?..
for(i = 0; i < 3; i++)
{
if(rows[i] ==0)
{
...
@Adak, Sir the the one who will picks the last stick will be the looser not the one who gets last.
I got the problem:
Player 2 turn:
Row1: I
Row2:
Row3:
Help.
This code is actually the same as mine and it make me so confuse.
what I'm trying to say is: For example row1: has no sticks anymore.
if the user will choose the row 1 it will print error cause...
Is this what you mean? :)) Sorry for not getting..
It will delete the row1? but if i wanted not to delete row 1? just let it stay there but
if the person chooses the row one it will promt error!...
#include <stdio.h>
int main ()
{
char ans;
do{
int rows[] = { 3, 5, 7};
i will delete the code? from #26 to #37 and put it in #46?..
while(sum>0)
{
if(rows[i])
{
printf("\nRow %d:", i+1);
}
for(i = 0; i < 3; i++)
It automatically shut the program..
the header will print but the game will stop..
Where can i put it??
This is my final code.. Just one problem when the blank row.. T.T How to fix it..
when the row is empty it should not be counted anymore T.T help help any solutions..
#include <stdio.h>
int...
So it cant be solved?.. or what?..
Got it, and dude last problem when the slot is empty that slot will be counted..
for example
Row1:
Row2: I I I I I I
when i put row 1 then get 3
it continued... how to say error the row...
Amm dude. the one who will get the last stick will be losser how to code that for example the player one got the last stick. how to code that it will say player 1 is the loseer?
printf("%d is...
This code works but it only prints
Row1: I I
Row2: I I I I
Row3: I I I I I
so i change the
int rows[] = { 2, 4, 6}; to { 3, 4, 6}
Got it i remove the break; so that the program will remove the sticks but now when i remove 3 in row 1 it just remove 2 only instead of 3..
#include <stdio.h>
int main ()
{
int rows[]...
in what line?.. T.T