Coin2
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 3 articles for 0.000 sec
Re: Evaluate My Program Please     

Group: alt.magick · Group Profile · Search for Coin2 in alt.magick
Author: CoreyWhite
Date: Sep 18, 2006 17:33

... do the players have? int coin1=75, coin2=20; // the second input variable is how ...// alternatively they could bet more, like coin1=coin1-3; coin2--; if (coin1==0 || coin2==0...> if (random(2)==1) coin1++; else coin2++; printf("%%d %%d\n", coin1, coin2); ...if (random(2)==1) coin1+=2; else coin2+=2; but even then nothing special is ...
Show full article (5.36Kb) · Show article thread
Re: Evaluate My Program Please     

Group: alt.magick · Group Profile · Search for Coin2 in alt.magick
Author: boson boss
Date: Sep 18, 2006 16:07

...the players have? int coin1=75, coin2=20; // the second input variable is...they could bet more, like coin1=coin1-3; coin2--; if (coin1==0 ...(random(2)==1) coin1++; else coin2++; printf("%%d %%d\n", coin1, coin2); } } Testing results. The tests are notoriously terrible. There are few ...(2)==1) coin1+=2; else coin2+=2; but even then nothing ...
Show full article (2.72Kb) · Show article thread
Re: Evaluate My Program Please     

Group: alt.magick · Group Profile · Search for Coin2 in alt.magick
Author: boson boss
Date: Sep 18, 2006 15:53

...input variables are how many coins do the players have? int coin1=75, coin2=20; // the second input variable is how many times do we want to...(iteration>0){ coin1--; // alternatively they could bet more, like coin1=coin1-3; coin2--; if (coin1==0 || coin2==0) break; iteration--; if (random(2)==1) coin1++; else coin2++; printf("%%d %%d\n", coin1, coin2); } }
Show full article (1.92Kb) · Show article thread