ChipWits: Robot-Programming Fun - Bring Your Brain!

ChipWits Game Community
rangefinder weirdness

 
Post new topic   Reply to topic    ChipWits: Robot-Programming Fun - Bring Your Brain! Forum Index -> Bug Hunting
View previous topic :: View next topic  
Author Message
trojo
NoobWit


Joined: 26 Feb 2007
Posts: 33
Location: Huntsville, Alabama

PostPosted: Sun May 25, 2008 2:06 am    Post subject: rangefinder weirdness Reply with quote

Rangefinder is still not working well for me. Right now my CW is looking at a PIE three squares away and repeatedly pushing rangefinder into the cup stack, but it keeps putting a zero-cup in there so as a result my wit is standing there trying to eat empty air. It seemed to work ok with walls, bombs, and doors though.

Also, IFNUMBERLESSTHAN didn't seem to be evaluating correctly at all either. IFNUMBEREQUALS seems to work though, so it's not critical.
Back to top
View user's profile Send private message
ihermit
NoobWit


Joined: 23 May 2008
Posts: 10

PostPosted: Sun May 25, 2008 4:13 am    Post subject: Bug or enhancement? Reply with quote

I've noticed unless the IfSee evaluates true The range to whatever is seen is left 0. Is this a bug or just an enhancement I woudl like?
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Mon May 26, 2008 4:49 am    Post subject: Reply with quote

I will look into this tomorrow and post a new build in the evening if I kill it.
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Tue May 27, 2008 6:08 am    Post subject: Reply with quote

Trojo. Are you running the latest 3D build? Says version .992 in the About Dialog?

I can't get either Rangefinder or IFNUMBERLESSTHAN to fail. I've inspected the code and found nothing obvious.

I'd love to hear more about the bug. Is it consistent?
Back to top
View user's profile Send private message
trojo
NoobWit


Joined: 26 Feb 2007
Posts: 33
Location: Huntsville, Alabama

PostPosted: Tue May 27, 2008 8:15 pm    Post subject: Reply with quote

Yeah this is with the latest build. I think ihermit might be correct in suggesting that the bug is related to when IFSEE evaluates to FALSE. My ChipWit isn't looking for food items per se, but making the determination that a food item is what is being looked at by process of elimination, so to speak.
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Wed May 28, 2008 3:15 am    Post subject: Reply with quote

I will document the effect that iHermit noted - that a false IFSEE puts a NUMBER0 in the RANGEFINDER.
Back to top
View user's profile Send private message
trojo
NoobWit


Joined: 26 Feb 2007
Posts: 33
Location: Huntsville, Alabama

PostPosted: Thu May 29, 2008 1:21 am    Post subject: Reply with quote

dougsharp wrote:
Trojo. Are you running the latest 3D build? Says version .992 in the About Dialog?

I can't get either Rangefinder or IFNUMBERLESSTHAN to fail. I've inspected the code and found nothing obvious.

I'd love to hear more about the bug. Is it consistent?


Here's a pic of IFNUMBERLESSTHAN failing.

http://myspace.aamu.edu/Users/troy.jones/help2.jpg

IFNUMBERLESSTHAN NUMBER1 is repeatedly returning false even though what's in the cup stack is NUMBER0.

This is with the 993 build.
Back to top
View user's profile Send private message
Bytecodes
IBOLHead


Joined: 06 Dec 2007
Posts: 79

PostPosted: Sat May 31, 2008 3:28 am    Post subject: RANGEFINDER is wrongly documented Reply with quote

The RANGEFINDER chip is wrongly documented and its graphic is backwards and needs to be redrawn. Last month I sent this bug report privately to Doug but since others are hitting this problem I'll post it here in the forum:

------------------------- RANGEFINDER BUG -----------------
I'm always miscoding the IF NUMBER LESS THAN because ChipWits does not follow the normal convention for compares that programming languages and mathematical notation use, which is: 'A < B' means A is being compared with B and if A is less than the result it TRUE.

The chip graphic clearly implies that the number stack is being compared against the argument but the opposite is true. To add to the confusion, the first line in help for RANGEFINDER says "Compares the number on top of the Number Stack to the ARGUMENT" which again is reversed. However, the final sentence in help does properly describe the actual comparison being done.
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Sat May 31, 2008 3:41 am    Post subject: Reply with quote

Thanks for this post, Dave.

I will change the documentation.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ChipWits: Robot-Programming Fun - Bring Your Brain! Forum Index -> Bug Hunting All times are GMT
Page 1 of 1

 
Jump to:  
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


© 2007-2008 Informe.com. Get Free Forum Hosting
Powered by phpBB © 2001, 2005 phpBB Group
 :: 

RedSilver 1.01 Theme was programmed by DEVPPL HTML Forum
Images were made by DEVPPL Photoshop Forum