Difference between revisions of "CSC103: DT's Notes 1"

From dftwiki3
Jump to: navigation, search
Line 829: Line 829:
 
You probably guessed it: it's the same conversation as before, but at the end the '''20 00''' numbers instruct us to go back to Line 0 and we start the conversation again.  Just like a movie playing in an endless loop.  While this may not seem terribly interesting, it is actually quite powerful.  
 
You probably guessed it: it's the same conversation as before, but at the end the '''20 00''' numbers instruct us to go back to Line 0 and we start the conversation again.  Just like a movie playing in an endless loop.  While this may not seem terribly interesting, it is actually quite powerful.  
  
Let's go one step further and now imagine that instead of two interlocutors, we have a prof and a whole class of students, and we'd like to imagine the prof having a conversation with the whole class.  But remember, the rule is to only use numbers.  How can we indicate that the conversation should be with one person first, then with the next, then the next, and so on?
+
Let's go one step further and change the rules of our "game" slightly.  Imagine that instead of two interlocutors, we have a prof and a whole class of students, and we'd like to describe only the prof's side of the conversation he or she is having with the whole class, and not the student's part.  But remember, the rule is still to only use numbers.  How can we indicate that the conversation should be with one person first, then with the next, then the next, and so on?
  
 
One way to make this happen is to introduce more ''coding'' in our game.
 
One way to make this happen is to introduce more ''coding'' in our game.
Line 853: Line 853:
 
Ok, here's one possible answer.
 
Ok, here's one possible answer.
  
   0:  
+
   00: 30 00    ''(Start with Person 0)''
 +
  01: 01 02    ''(Hello, how are you)''
 +
  02: 03 06    ''(Did you enjoy homework)''
 +
  03: 31          ''(Move to next person)''
 +
  04: 20 00    ''(Go back to Line 00)''
 +
 
 +
 
 +
 
  
  

Revision as of 20:53, 3 October 2012

--© D. Thiebaut 08:10, 30 January 2012 (EST)



This section is only visible to computers located at Smith College













.