Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.independent

Topic: ** ROBOT'S 1ST SENTENCE **
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Graham Cooper

Posts: 4,247
Registered: 5/20/10
** ROBOT'S 1ST SENTENCE **
Posted: May 12, 2013 3:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

1st PROGRAM

vert [ pnt X Y ] [ pnt X Z ] .


-----------------------


I Finally got it working!


TRACE

horz A [pnt 5 4 ] ?

PUSH: 0 .... V A .... REF 2 .... TERM
PUSH: 1 .... V .... REF 21 .... TERM pnt
PUSH: 2 .... V .... REF 22 .... TERM X
PUSH: 3 .... V .... REF 23 .... TERM Y
PUSH: 4 .... V Z .... REF 32 .... TERM 5
PUSH: 5 .... V Y .... REF 33 .... TERM 4

horz [ pnt X Y ] [ pnt Z Y ]

<<MATCH>>

-------------------------------

horz A [pnt 5 4 ] ?

WIDE:2
WR:2---21---pnt
WR:2---22---X
DEEP:4
WR:2---23---Y
DEEP:5
VAR:Y====4

A:=pnt X 4



---------------


HUMAN: what makes a vertical line with (5,4) ?

horz A [pnt 5 4 ] ?

ROBOT: Any Point with a Variable X and Y = 4.

A:=pnt X 4
---------------

NEXT WEEK: Double Tail End Recursion & some BLOCKPROLOG Speed Tests!


Herc
--
www.BLoCKPROLOG.com



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.