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

Username:   Password: 
 RegisterRegister   
 My First Game!!!
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gohabsgo007




PostPosted: Tue Jan 20, 2015 5:40 pm   Post subject: My First Game!!!

This was the final summative I did for grade 10 compsci. It's called Yahtzou.
edit: any suggestions for improvement?



YAHTZOU.zip
 Description:

Download
 Filename:  YAHTZOU.zip
 Filesize:  18.58 KB
 Downloaded:  305 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
gohabsgo007




PostPosted: Thu Jan 22, 2015 12:51 pm   Post subject: Re: My First Game!!!

guess nobody likes it! Neutral
bubb4h0t3p




PostPosted: Thu Jan 22, 2015 6:58 pm   Post subject: 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
Turing:

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




PostPosted: Thu Jan 22, 2015 8:39 pm   Post subject: Re: My First Game!!!

yah, ill put comments, and i'll try the .gif thing... but i handed it in last friday! Embarassed
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: