Re: [Tutor] Help with Dice game

2014-11-11 Thread Dave Angel
Wrote in message: > > > > > > > Hello, I can not for the life of me figure out where I have gone wrong. I > wrote the following code as a simulation for the table top game x-wing. It > basically simulates dice rolls but the issue is the fact that every time I > choose a number of dice t

Re: [Tutor] Help with Dice game

2014-11-10 Thread Lifeng Lin
I am not familiar with the game, but maybe using "offense += 1" and "defense += 1" to replace the corresponding "continue" would help? On Mon, Nov 10, 2014 at 2:57 PM, wrote: > Hello, I can not for the life of me figure out where I have gone wrong. > I wrote the following code as a simulation f

Re: [Tutor] Help with Dice game

2014-11-10 Thread Alan Gauld
On 10/11/14 20:57, corylog...@yahoo.com.dmarc.invalid wrote: I wrote the following code as a simulation for the table top game x-wing. I don;t know it so can only give some general comments below... import random print("X-wing dice simulator") x = int(input("How many dice will the offensive

[Tutor] Help with Dice game

2014-11-10 Thread coryloghry
Hello, I can not for the life of me figure out where I have gone wrong. I wrote the following code as a simulation for the table top game x-wing. It basically simulates dice rolls but the issue is the fact that every time I choose a number of dice to roll, they all hit. None of them ever miss