This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Author Message
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 22 Oct 2009 12:59:27 pm    Post subject:

DarkerLine wrote:
Hm, I wonder if you can easily check the density of the shape.

dim(<span style='font-size:7pt;line-height:100%'>L</span>X)/(max(<span style='font-size:7pt;line-height:100%'>L</span>X)-min(<span style='font-size:7pt;line-height:100%'>L</span>X))/(max(<span style='font-size:7pt;line-height:100%'>L</span>Y)-min(<span style='font-size:7pt;line-height:100%'>L</span>Y
If Ans > /some threshold/
Then //the shape is dense, use one method
For(X,min(<span style='font-size:7pt;line-height:100%'>L</span>X)-1,1+max(<span style='font-size:7pt;line-height:100%'>L</span>X
For(Y,min(<span style='font-size:7pt;line-height:100%'>L</span>Y)-1,1+max(<span style='font-size:7pt;line-height:100%'>L</span>Y
sum(1=max(abs(<span style='font-size:7pt;line-height:100%'>L</span>X-X,<span style='font-size:7pt;line-height:100%'>L</span>Y-Y
If 3=Ans or 3=Ans-max(<span style='font-size:7pt;line-height:100%'>L</span>X=X and <span style='font-size:7pt;line-height:100%'>L</span>Y=Y
Then
S+1->S
X-><span style='font-size:7pt;line-height:100%'>L</span>P(S
Y-><span style='font-size:7pt;line-height:100%'>L</span>Q(S
End
End
End
Else //If the shape isn't dense, use another method
For(D,-1,1
<span style='font-size:7pt;line-height:100%'>L</span>X+D->U
For(E,-1,1
<span style='font-size:7pt;line-height:100%'>L</span>Y+E->V
For(I,1,dim(<span style='font-size:7pt;line-height:100%'>L</span>X
<span style='font-size:7pt;line-height:100%'>L</span>U(I ->X
<span style='font-size:7pt;line-height:100%'>L</span>V(I->Y
sum(1=max(abs(<span style='font-size:7pt;line-height:100%'>L</span>X-X,<span style='font-size:7pt;line-height:100%'>L</span>Y-Y
If 3=Ans or 3=Ans-max(<span style='font-size:7pt;line-height:100%'>L</span>X=X and <span style='font-size:7pt;line-height:100%'>L</span>Y=Y
Then
S+1->S
X-><span style='font-size:7pt;line-height:100%'>L</span>P(S
Y-><span style='font-size:7pt;line-height:100%'>L</span>Q(S
End
End
End
End
End

The tough part is figuring out a good threshold for D.



Hello I am sorry to bother you but I was not visiting your site when these posts were so I do that is why I am posting 5 years after the last post I was wondering if you explain in detail exactly how to use this program because I love the description but I could never play this game so it would be fantastic if you would explain to me about turning the pixels on and off and the aspects of the game I should know about.
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 22 Oct 2009 08:48:40 pm    Post subject:

if your interested in Conways game of life(its not really a game) i would recommend checking out Iambians cellular automaton, also please don't necropost most dead topics are dead for a reason
also i recommend checking out http://armorgames.com/play/2660/the-irregulargame-of-life


Last edited by Guest on 22 Oct 2009 08:58:07 pm; edited 1 time in total
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 22 Oct 2009 09:20:16 pm    Post subject:

[font="Comic Sans MS"]deja-vu didnt we just have this conversation on cemtech. Anyway conways game of life isnt a game its a cellular automa(sp) sim .The Game is played by placing cells on to a grid and then aplying certian rules to them to create a new generation of cells. When done by a computer it can create some pretty cool patterns. For a list of the rules see [font="Arial"]Google
Back to top
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 26 Oct 2009 12:18:35 pm    Post subject:

[font="Century Gothic"]Look im sorry cut I dont understand things as much as you guys do i am still learning so if you dont mind i'd greatly appreciate if you helped me learn how to do it on a ti83 plus because trial and error and experimentation have failed me in my attempts so far
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 26 Oct 2009 02:23:46 pm    Post subject:

so far you haven't proven to any of us that your capable of making your own programs let alone do something this complicated. sorry to break it to you but this program is absolutely out of your league, its also out of mine so i couldnt help you any way.
Back to top
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 28 Oct 2009 11:40:38 am    Post subject:

Look can we just start over new because i dont want to make enemies with people who can help me so i am hereby issuing a apology to every single person who has had to erase my errotic rulebreaking posts and listen to my expicit posts so therefore I am Sorry evryone Neutral.! Sad
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 28 Oct 2009 02:27:58 pm    Post subject:

Hi, I'm ztrumpet. Smile
Welcome to United Ti.
Since you are a *new* user, I would like to point you in this direction:
http://www.unitedti.org/index.php?act=boardrules
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 28 Oct 2009 02:32:44 pm    Post subject:

LOL Very Happy hes had alot ofboard rule reminders already
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 28 Oct 2009 03:16:54 pm    Post subject:

Yeah thanks now your unblocked if i was you id start on allitle easier program
Back to top
tr1p1ea


Elite


Joined: 03 Aug 2003
Posts: 870

Posted: 29 Oct 2009 06:59:02 am    Post subject:

Well a standard implementation of conway's game of life wouldnt be out of anyones league if they have some basic programming knowledge. The tricks come into play when you want to get extra speed.

I suggest to begin with, especially if you are programming in BASIC, to pretend that the pixels are really big so that you dont have as much of the 'world' to process.
Back to top
Display posts from previous:   
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
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are UTC - 5 Hours

 

Advertisement