No, I'm saying that you should be very careful to avoid Gotos inside loops and conditionals, but if you do that successfully, you should have no problems with "program fatigue".
Ok good. I don't have to worry about my program slowing down over time then.
Read: http://www.cemetech.net/forum/viewtopic.php?t=979

That should give you an understanding of program fatigue.
That's part of the reason why I asked this question, because it said the calculator stores to RAM whenever it reaches an If...Then. When a Goto is executed it never reaches the end so it never deallocates the RAM. I was wondering if the same effect would occur if the End was not reached for a long time.
Yeah, it still slows the calc down, the slow down will happen until there is no mem left...
something1990 wrote:
That's part of the reason why I asked this question, because it said the calculator stores to RAM whenever it reaches an If...Then. When a Goto is executed it never reaches the end so it never deallocates the RAM. I was wondering if the same effect would occur if the End was not reached for a long time.


No actually, it doesn't matter how long it takes you to reach it, as long as you don't open up too many additional loops in the meantime.
Here is the list data for the sprites in Battleship. They take up quite a lot of space, but I think they are nice. Tell me what you think.

Code:
:0,1,0,6,5,4,3,2,1,0,7,0,6,5,4,3,2,1,0,1,0,0
:0,1,1,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,5,5,6
:"CURSOR
:7,6,5,0,10,9,8,7,6,5,4,3,2,1,0,11,10,9,8,7,6,5,4,3,2,1,0,11,10,9,8,7,6,5,4,3,2,1,0,10,9,8,7,6,5,4,3,2,1,0,0
:0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5
:"SUB
:3,2,4,1,5,3,2,0,5,3,2,0,4,1,3,2
:0,0,1,1,2,2,2,2,3,3,3,3,4,4,5,5
:"TARGET
:16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,13,12,9,8,7,6,3,2,13,12,8,6,3,2,13,12,9,6,3,2
:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1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6,6,7,7,7,7,8,8,8,8,9,9,9,9,9,10,10,10,10,10,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,17
:"S{-}DESTROYER
:2,4,2,1,5,4,3,2,0,5,4,3,2,0,2,1,2
:0,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,5
:"S{-}PT BOAT
:3,2,4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1,5,4,3,2,1,0,4,3,2,1,5,4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1,5,4,3,2,1,0
:0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,11,11
:"S{-}SUB
:2,2,2,2,2,2,2,1,2,1,0,2,1,0,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,2,1,0,2,1,0,5,3,2,1,0,4,3,2,1,0,3,2,1,0,5,4,3,2,1,0,2,1,0,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,2,1,2
:0,1,2,3,4,5,6,6,7,7,7,8,8,8,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,17,17,17,17,17,17,18,18,18,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21,22,22,23
:"S{-}BATTLESHIP
:2,2,1,2,1,0,2,1,0,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,2,1,0,2,1,0,5,2,1,0,4,2,1,0,4,3,2,1,0,4,3,2,1,0,2,1,0,2,1,0,5,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,2,1,0,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,2,1,2
:0,1,1,2,2,2,3,3,3,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,11,12,12,12,12,12,13,13,13,14,14,14,15,15,15,15,15,16,16,16,16,16,17,17,17,17,17,17,18,18,18,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21,22,22,23
:"S{-}CRUISER
Generated by SourceCoder (http://www.cemetech.net/projects/basicelite/sourcecoder.php)
© 2005 Cemetech (http://www.cemetech.net)

(birdman since this isn't actual game code I am assuming it is ok)
The first list of numbers is for L1, second for L2, so you can plot them. It was lots of fun making these. You should have seen how mystified all the kids looked when they saw me shade in graph paper and writing numbers down Laughing
Here's a list of features I plan on adding to my Battleship game when I make one, you may be a be to implement some of them:
    Up to 4 players at a time
    Varying sized boards for each player (6x6, 8x8, and 10x10)
    Salvo (1 shot per ship left, not showing results until all shots fired)
    Volley (shoot until you miss)
    Classic (1 shot per turn)
Cool! Different modes always make the game more interesting and add replay value.
I was originally planning on giving the player three shots, like it was done in Super Battleship for my SNES. If I have enough time, I'll plan for those modes as well.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement