Computer Science Canada Star Wars RISK |
Author: | Tallguy [ Tue Nov 18, 2008 5:53 pm ] |
Post subject: | Star Wars RISK |
Hey guys hows it going? Haven't been programming for a while and I thought of doing Star Wars RISK. Great fun for everyone and its Star Wars, whats better then that? lol So my problem may seem trivial, but remember I haven't done this in a while. So far I have my start up screen were you enter your names and chose your fraction, the thing is; it takes several clicks to choose and you can both choose the same fraction, which isn't suppose to happen. So any help is welcome, comments too. |
Author: | The_Bean [ Tue Nov 18, 2008 8:24 pm ] |
Post subject: | Re: Star Wars RISK |
An easy way to keep each player from choosing the same faction is to give each faction a boolean variable, initially have them all set to false, then as someone picks them make the variable true, and don't let someone else pick the faction if its boolean value is true. Basically eliminating the faction as a future possibility. |
Author: | Tallguy [ Wed Nov 19, 2008 10:01 am ] |
Post subject: | RE:Star Wars RISK |
ummm, i understand what you mean, just unsure where to place it . . . |
Author: | S_Grimm [ Wed Nov 19, 2008 11:25 am ] | ||
Post subject: | RE:Star Wars RISK | ||
In there would be the best spot. Where your if statements are, have an " and chosen = false" statement. Only place i could think of. |