Computer Science Canada Yahtzee |
Author: | brawler [ Mon Mar 05, 2007 1:18 pm ] |
Post subject: | Yahtzee |
Ok i have started yahtzee i have pretty much everything but i want to alternate through players after rolls and i have no idea on how about doing that. And bash the code all you want i need to know what to do in the future. The compiler im using is MS VC++ ignore the class names as i just copied them from previous code and i will change them after lol. |
Author: | brawler [ Wed Mar 07, 2007 1:31 pm ] |
Post subject: | RE:Yahtzee |
Does anybody know how i could make this class alternate players by each roll??? |
Author: | klopyrev [ Wed Mar 07, 2007 1:45 pm ] |
Post subject: | Re: Yahtzee |
Have a player variable that keeps track of which player's turn it is? I didn't actually look at the code, but maybe that's what you need. KL |
Author: | brawler [ Wed Mar 07, 2007 5:11 pm ] |
Post subject: | RE:Yahtzee |
No that dosnt really help it dosnt alternate right now u just play all of one players roll then u do that for 2 then 3 and so on |
Author: | brawler [ Wed Mar 21, 2007 11:38 am ] |
Post subject: | RE:Yahtzee |
anybody else have any ideas?? |
Author: | ericfourfour [ Wed Mar 21, 2007 2:39 pm ] |
Post subject: | RE:Yahtzee |
I'm confused. Can you possibly elaborate? Are you talking about iterating through all of the players so they each get a turn? |
Author: | brawler [ Tue Mar 27, 2007 12:18 pm ] |
Post subject: | RE:Yahtzee |
ya like that like you know in yahtzee you go one a time like. right now in my yahtzaa game u have to complete the whole card before the next person goes unlike real yahtzee u alternate between scorings. so im trying to make it so that u do ur first turn then second player does his first turn then u do ur second and so on. but mine does i do all my turns then u do all ur turns then done. |