To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 9323
9322  |  9324
Subject: 
Re: What is shaping up to be the most posted-on rtl event in the history of rtl events....
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Fri, 19 Sep 2003 21:10:51 GMT
Viewed: 
567 times
  
Calum Tsang wrote:


In lugnet.org.ca.rtltoronto, Iain Hendry wrote:
In lugnet.org.ca.rtltoronto, Ka-On Lee wrote:
Things you can do to make it faster:

-Don't drop everything you're doing to make sure the current cell is correct. If
you don't have the right state of the cell, don't look for something to fix it
immediately, just remember it and go to the next one.  ie, if the first cell is
wrong, numbers 2-14 might be right, so you might be carrying around that block
looking for a long time.  Just note it down that you need to clear cell 1, go
and check the rest and come back later to fix it up when you realize cell 15 had
a spare block.

-Maybe hold blocks while moving around.  Not useful for 4x4, very useful for
10x10.

-Don't snake the board, go direct to the cell.

If you're asking how to invent that structure, I think it's something
programmers learn over time.

Calum

OR he could have done what I told him From DAY ONE!!!

pre scan the board, and use my (TM) Kevin C. approved code.


Chris



Message is in Reply To:
  Re: What is shaping up to be the most posted-on rtl event in the history of rtl events....
 
(...) You have to think it out a bit how to structure the program as a set of loops. This is compounded by some oft he limtiations of the RCX firmware. I think the basic one is, very roughly: Imagine all the squares in a line. 16x1 array. Make an (...) (21 years ago, 19-Sep-03, to lugnet.org.ca.rtltoronto)

55 Messages in This Thread:





















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR