
-----------------------------------
gohabsgo007
Tue Jan 20, 2015 5:40 pm

My First Game!!!
-----------------------------------
This was the final summative I did for grade 10 compsci. It's called Yahtzou.
edit: any suggestions for improvement?

-----------------------------------
gohabsgo007
Thu Jan 22, 2015 12:51 pm

Re: My First Game!!!
-----------------------------------
guess nobody likes it! :|

-----------------------------------
bubb4h0t3p
Thu Jan 22, 2015 6:58 pm

RE:My First Game!!!
-----------------------------------
Suggestions for Improvement

- Add some comments, didn't you need to add comments anyways if this was an assignment?

- I understand this is a daunting task but perhaps display a GIF file with dice rolling while randomizing the result each, then let the user stop the dice by pressing any key. Kind of like the hasch example in the turing documentation

put "Press any key to stop the dice rolling"
        var die1, die2 : int
        var ch : string (1)
        loop
            exit when hasch
            randint (die1, 1, 6)
            randint (die2, 1, 6)
            locate (1, 1)
            put "You rolled ", die1 + die2
        end loop
            
        getch (ch)    % Discard the character


-----------------------------------
gohabsgo007
Thu Jan 22, 2015 8:39 pm

Re: My First Game!!!
-----------------------------------
yah, ill put comments, and i'll try the .gif thing... but i handed it in last friday! :oops:
