View unanswered posts | View active topics It is currently Thu Apr 23, 2026 12:43 am



Reply to topic  [ 5 posts ] 
 TWX Arrays Tutorial 
Author Message
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post TWX Arrays Tutorial
I've posted the first part of a tutorial that I've been working on for a while here: http://www.twxscripts.com/twxarrays1
It's my attempt to teach array basics. There is more to follow, but I hope that some of you will have that "AHA!" moment as you read this.

And since while loops go hand and hand with array usage, I've provided clear and concise examples of iterating over an array using a while loop.

And believe it or not, part 1 even delves into multi-dimensional arrays and nested while loops, all within about 3 paragraphs. Wreckless, I know.

Have a read, and let me know if you learned anything.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Sat Sep 12, 2009 12:16 am
Profile WWW
Lieutenant Commander
User avatar

Joined: Sun Jan 29, 2006 3:00 am
Posts: 800
Location: Iowa
Unread post Re: TWX Arrays Tutorial
Outstanding examples! Strong work EP !

_________________
#+++
The early bird may get the worm, but the second mouse gets the cheese.
#---


Sat Sep 12, 2009 7:25 am
Profile ICQ YIM
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: TWX Arrays Tutorial
ElderProphet wrote:
I've posted the first part of a tutorial that I've been working on for a while here: http://www.twxscripts.com/twxarrays1
It's my attempt to teach array basics. There is more to follow, but I hope that some of you will have that "AHA!" moment as you read this.

And since while loops go hand and hand with array usage, I've provided clear and concise examples of iterating over an array using a while loop.

And believe it or not, part 1 even delves into multi-dimensional arrays and nested while loops, all within about 3 paragraphs. Wreckless, I know.

Have a read, and let me know if you learned anything.

+EP+


AHA!!! :)

Nice work. Very clear and concise, since it was you to teach me arrays in the first place when I was working on my ScoreKeeper script. I was reading this and going "hey, he said that exact thing to me as he was teaching me". But the "AHA" came first.

May we post this in our TradeWars Academy section as well?

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat Sep 12, 2009 10:27 pm
Profile
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: TWX Arrays Tutorial
Yes, I can't wait until the rest of the site is done. If you need any help on the site EP let me know.


Sat Sep 12, 2009 10:31 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX Arrays Tutorial
Thrawn wrote:
May we post this in our TradeWars Academy section as well?
Of course.

For the rest of you, what aspects of arrays or while loops require additional explanation? I had planned on going on to intermediate array usage, so if there is something about array basics that needs better explanation, then please speak up.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Thu Sep 17, 2009 6:45 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 30 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.