Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Yahtzee
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
brawler




PostPosted: 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.


Yahtzee.cpp
 Description:
the program

Download
 Filename:  Yahtzee.cpp
 Filesize:  13.12 KB
 Downloaded:  986 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
brawler




PostPosted: 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???
klopyrev




PostPosted: 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
brawler




PostPosted: 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
brawler




PostPosted: Wed Mar 21, 2007 11:38 am   Post subject: RE:Yahtzee

anybody else have any ideas??
ericfourfour




PostPosted: 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?
brawler




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: