Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 5th, 2003, 04:52 AM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[down-n-out] consecutive numbering of tile types?

"For our purposes tile types will be represented by numbers, starting at 1. So for a board with 3 tile types, they would be 1 2 and 3."

You guarantee it won't be like 1,5,7?

I just wanted to check this...
This seems like a fun contest... almost a tetris AI

Reply With Quote
  #2  
Old March 5th, 2003, 05:32 AM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: [down-n-out] consecutive numbering of tile types?

Analyse this, and you'll see that it won't be like 1,5,7...

php Code:
Original - php Code
  1.  
  2. for($i = 1; $i <= $total; $i++) {
  3.     $layout[$i] = ($i % $_GET['tiles']) + 1;
  4. }


Because the line in the middle uses a modulo it won't be like 1,5,7...

Reply With Quote
  #3  
Old March 5th, 2003, 12:17 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: [down-n-out] consecutive numbering of tile types?

Tile number will be sequential. I guarantee it

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [down-n-out] consecutive numbering of tile types?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT