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

Username:   Password: 
 RegisterRegister   
 Baseball Game (Grade 10 Summative)
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
C




PostPosted: Thu Jun 11, 2009 8:00 pm   Post subject: Baseball Game (Grade 10 Summative)

oK. This is a baseball game I had to do for my grade 10 summative Very Happy . It is based on a game of baseball, and it's really basic and I just want some comments on how it is and what I can improve ...

oh and you need to go set your turing preferences (run window : 40 rows, 100 colums)



Baseball_game.zip
 Description:
Baseball Game

Download
 Filename:  Baseball_game.zip
 Filesize:  286.69 KB
 Downloaded:  276 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Jun 12, 2009 11:38 am   Post subject: RE:Baseball Game (Grade 10 Summative)

you'd get better comments if you submitted your source code, not the compiled executable...
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Alexmula




PostPosted: Fri Jun 12, 2009 12:11 pm   Post subject: RE:Baseball Game (Grade 10 Summative)

the other team had a player on 2nd base and i walked off a batter and the player on 2nd base went to third Laughing is that right? i forget
C




PostPosted: Fri Jun 12, 2009 2:37 pm   Post subject: RE:Baseball Game (Grade 10 Summative)

oops..I'll have that fixed
C




PostPosted: Fri Jun 12, 2009 3:02 pm   Post subject: Re: Baseball Game (Grade 10 Summative)

Here is the fixed source code , and no the player is not supposed to go to third base Shocked


compsci isu.t
 Description:
Updated Baseball Game

Download
 Filename:  compsci isu.t
 Filesize:  52.73 KB
 Downloaded:  177 Time(s)

BigBear




PostPosted: Fri Jun 12, 2009 3:08 pm   Post subject: RE:Baseball Game (Grade 10 Summative)

Why are you initializing your arrays? Why not declare empty array then get input ?
C




PostPosted: Fri Jun 12, 2009 3:19 pm   Post subject: RE:Baseball Game (Grade 10 Summative)

oh they need to have a certain predifined value to them ..that's why i gave them a initial value
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  [ 7 Posts ]
Jump to:   


Style:  
Search: