SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
Welcome!

                               Karel the Robot
        Teaches Critical Thinking



Copyright © 2008 Technia. All rights reserved.
Karel the Robot
                           Teaches Critical Thinking


      Compiled by: Debbie Clingingsmith

      Email: debbie@clingingsmith.org

      Last revised: 1/26/2008

      Description: Using the Karel J Robot simulator to
      teach critical thinking skills

      Download Slides: slideshare.net/dlclingingsmith




    Copyright © 2008 Technia. All rights reserved.
What is a critical thinking?
 Critical thinking is the intellectually disciplined
 process of actively and skillfully conceptualizing,
 applying, analyzing, synthesizing, and/or
 evaluating information gathered from, or
 generated by, observation, experience, reflection,
 reasoning, or communication, as a guide to belief
 and action.
 Defining Critical Thinking: A statement by Michael Scriven & Richard Paul for the National
 Council for Excellence in Critical Thinking Instruction, Critical Thinking Foundation,
 downloaded 1-23-2008 from
 http://www.criticalthinking.org/aboutCT/define_critical_thinking.cfm



Copyright © 2008 Technia. All rights reserved.
What Karel J Robot?
 Karel is an educational programming language
 for absolute beginners, created by Richard E.
 Pattis in his book “Karel The Robot: A Gentle
 Introduction to the Art of Programming.” Pattis
 used the language in his courses at Stanford
 University. The language is named after Karel
 Čapek, a Czech writer who introduced the word
 robot.
 Karel (programming language), Wikipedia, downloaded 1-23-2008 from
 http://en.wikipedia.org/wiki/Karel_(programming_language)



Copyright © 2008 Technia. All rights reserved.
For teachers, Karel J Robot is:

  A simulator
      Karel lives in a simple world of streets and avenues
            


  Free to download
            
                PC/MAC available at
                http://pclc.pace.edu/~bergin/KarelJava2ed/karelexperimental.html
            
                 or http://www.wiley.com/college/pattis/0471597252/instructor/instructor.html#pc
            
                Palm OS available at
                http://handheld.softpedia.com/get/Educational/Tutorial/Karel-the-
                Robot-6753.shtml
            
                Several versions, suggested version is Karel J Robot which uses Java
            
                Available for MAC, PC, or Palm OS

    Easy to learn and use
            
                Karel may perform five different activities
            
                May create new activities oneself
            
                Karel knows about conditions in the environment

    Fun to run
            
                Provides immediate feedback
            
                Middle and high school students enjoy Karel



    Copyright © 2008 Technia. All rights reserved.
Karel J Robot's World




Copyright © 2008 Technia. All rights reserved.
Karel J Robot's World




Copyright © 2008 Technia. All rights reserved.
Karel J Robot's World




Copyright © 2008 Technia. All rights reserved.
Karel J Robot's World




Copyright © 2008 Technia. All rights reserved.
Program tab (Pascal)




Copyright © 2008 Technia. All rights reserved.
Program tab (Java)




Copyright © 2008 Technia. All rights reserved.
Execute tab




Copyright © 2008 Technia. All rights reserved.
What may Karel do

    move

    turnleft

    pickbeeper

    putbeeper

    turnoff




Copyright © 2008 Technia. All rights reserved.
What Karel may know

     Whether a direction is blocked or clear
             
                 frontIsBlocked                  
                                                     frontIsClear
             
                 leftIsBlocked
                                                 
                                                     leftIsClear
             
                 RightIsBlocked
                                                 
                                                     rightIsClear


     Direction faced
             
                 facingNorth                     
                                                     notFacingNorth
             
                 facingSouth
                                                 
                                                     notFacingSouth
             
                 facingEast
                                                 
                                                     notFacingEast
                                                 
                                                     notFacingWest
             
                 facingWest

     Whether beepers are nearby or in the bag
                           noBeepersInBeeperBag  
             
                 anyBeepersInBeeperBag           
                                                     notNextToABeeper
             
                 nextToABeeper



Copyright © 2008 Technia. All rights reserved.
How may Karel decide
Control statements


            
                if
                       Example: if (frontIsBlocked) {turnleft();}
            
                while
                       Example: while (frontIsBlocked) {turnleft();}
            
                iterate
                       Example: iterate(3) {turnleft();}
            
                if with else
                       Example: if (frontIsBlocked) {turnleft();}
                                       else {move()};
•Format: command ( condition to meet ) { what to do }



    Copyright © 2008 Technia. All rights reserved.
Creating new Karel activities

define
        
             Use with braces above and below the instructions included in the newly
             defined command
        
             A defined command may be used in another defined command. However,
             it must be defined previous to its use (physically, it must be above where
             it is used in a new define).
        
             Example: creating a right turn
                          define turnright() {
                                  turnleft();
                                  turnleft();
                                  turnleft();
                          }

        
             Example of use: if (frontIsBlocked) {turnright()};




Copyright © 2008 Technia. All rights reserved.
How to Use Karel
        ✔ Make or open a Karel world
                         * When Karel starts, it is in the world tab
                         * Create walls by left clicking between two adjacent blocks
                         * Place beepers if you wish
                         * Save your world
        ✔ Create or open a program
                         * Left click the Program tab
                         * Choose Pacal or Java, then click the New button
                         * Write your program, then click the Compile button
                         * Save your program
        ✔ Run your program
                         * Left click the Execute tab
                         * Click the Initialize button
                         * Click the Run button. Increase speed by increasing the Steps/Min number.



Copyright © 2008 Technia. All rights reserved.
Karel Resources

        •          Otterbein college
                         * Karel the Robot tutorial online in Pascal
                         * URL: http://math.otterbein.edu/home/JKarelRobot/ParelTutorial/Karel.htm
                         * Place beepers if you wish
                         * Save your world
        •          David Wittry web site
                         * URL: http://www.apcomputerscience.com/karel/index.htm
                         * Movie demos of Karel running
                         * First edition of Karel J Robt: An Introduction to the Gentle Art of Object
                           Oriented Programming in Java available free and online
        .




Copyright © 2008 Technia. All rights reserved.
Karel Exercises

        •          Atlantic City High School
                      * “Karel the Robot Introductory Role Play Classroom Activity” paper by
                   Joseph A. Tosh
                      * URL: http://pclc.pace.edu/~bergin/KarelJava2ed/KarelRolePlay.html

        •          JR Masterman School
                       * URL:
                   http://geom.teachopensource.org/apcs/resources/resources_files/lecturek1-2007.p
                   df
                       * Slide set and a paper exercise
                   .




Copyright © 2008 Technia. All rights reserved.

Weitere ähnliche Inhalte

Mehr von dlclingingsmith

Mehr von dlclingingsmith (7)

Word Version - Transitus of St. Francis 10-3-2020: Bardi Dossal Narrative
Word Version - Transitus of St. Francis 10-3-2020: Bardi Dossal NarrativeWord Version - Transitus of St. Francis 10-3-2020: Bardi Dossal Narrative
Word Version - Transitus of St. Francis 10-3-2020: Bardi Dossal Narrative
 
Transitus of St Francis 10-3-2020: Bardi Dossal Powerpoint
Transitus of St Francis 10-3-2020: Bardi Dossal PowerpointTransitus of St Francis 10-3-2020: Bardi Dossal Powerpoint
Transitus of St Francis 10-3-2020: Bardi Dossal Powerpoint
 
Clara's House: Who we are and what we do
Clara's House: Who we are and what we doClara's House: Who we are and what we do
Clara's House: Who we are and what we do
 
Computer navigation basics
Computer navigation basicsComputer navigation basics
Computer navigation basics
 
Clara's House for Supporters
Clara's House for SupportersClara's House for Supporters
Clara's House for Supporters
 
Free Tools
Free ToolsFree Tools
Free Tools
 
Podcasting Basics
Podcasting  BasicsPodcasting  Basics
Podcasting Basics
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Karel the Robot Teaches Critical Thinking

  • 1. Welcome! Karel the Robot Teaches Critical Thinking Copyright © 2008 Technia. All rights reserved.
  • 2. Karel the Robot Teaches Critical Thinking  Compiled by: Debbie Clingingsmith  Email: debbie@clingingsmith.org  Last revised: 1/26/2008  Description: Using the Karel J Robot simulator to teach critical thinking skills  Download Slides: slideshare.net/dlclingingsmith Copyright © 2008 Technia. All rights reserved.
  • 3. What is a critical thinking? Critical thinking is the intellectually disciplined process of actively and skillfully conceptualizing, applying, analyzing, synthesizing, and/or evaluating information gathered from, or generated by, observation, experience, reflection, reasoning, or communication, as a guide to belief and action. Defining Critical Thinking: A statement by Michael Scriven & Richard Paul for the National Council for Excellence in Critical Thinking Instruction, Critical Thinking Foundation, downloaded 1-23-2008 from http://www.criticalthinking.org/aboutCT/define_critical_thinking.cfm Copyright © 2008 Technia. All rights reserved.
  • 4. What Karel J Robot? Karel is an educational programming language for absolute beginners, created by Richard E. Pattis in his book “Karel The Robot: A Gentle Introduction to the Art of Programming.” Pattis used the language in his courses at Stanford University. The language is named after Karel Čapek, a Czech writer who introduced the word robot. Karel (programming language), Wikipedia, downloaded 1-23-2008 from http://en.wikipedia.org/wiki/Karel_(programming_language) Copyright © 2008 Technia. All rights reserved.
  • 5. For teachers, Karel J Robot is:  A simulator Karel lives in a simple world of streets and avenues   Free to download  PC/MAC available at http://pclc.pace.edu/~bergin/KarelJava2ed/karelexperimental.html  or http://www.wiley.com/college/pattis/0471597252/instructor/instructor.html#pc  Palm OS available at http://handheld.softpedia.com/get/Educational/Tutorial/Karel-the- Robot-6753.shtml  Several versions, suggested version is Karel J Robot which uses Java  Available for MAC, PC, or Palm OS  Easy to learn and use  Karel may perform five different activities  May create new activities oneself  Karel knows about conditions in the environment  Fun to run  Provides immediate feedback  Middle and high school students enjoy Karel Copyright © 2008 Technia. All rights reserved.
  • 6. Karel J Robot's World Copyright © 2008 Technia. All rights reserved.
  • 7. Karel J Robot's World Copyright © 2008 Technia. All rights reserved.
  • 8. Karel J Robot's World Copyright © 2008 Technia. All rights reserved.
  • 9. Karel J Robot's World Copyright © 2008 Technia. All rights reserved.
  • 10. Program tab (Pascal) Copyright © 2008 Technia. All rights reserved.
  • 11. Program tab (Java) Copyright © 2008 Technia. All rights reserved.
  • 12. Execute tab Copyright © 2008 Technia. All rights reserved.
  • 13. What may Karel do  move  turnleft  pickbeeper  putbeeper  turnoff Copyright © 2008 Technia. All rights reserved.
  • 14. What Karel may know  Whether a direction is blocked or clear  frontIsBlocked  frontIsClear  leftIsBlocked  leftIsClear  RightIsBlocked  rightIsClear  Direction faced  facingNorth  notFacingNorth  facingSouth  notFacingSouth  facingEast  notFacingEast  notFacingWest  facingWest  Whether beepers are nearby or in the bag noBeepersInBeeperBag   anyBeepersInBeeperBag  notNextToABeeper  nextToABeeper Copyright © 2008 Technia. All rights reserved.
  • 15. How may Karel decide Control statements   if Example: if (frontIsBlocked) {turnleft();}  while Example: while (frontIsBlocked) {turnleft();}  iterate Example: iterate(3) {turnleft();}  if with else Example: if (frontIsBlocked) {turnleft();} else {move()}; •Format: command ( condition to meet ) { what to do } Copyright © 2008 Technia. All rights reserved.
  • 16. Creating new Karel activities define  Use with braces above and below the instructions included in the newly defined command  A defined command may be used in another defined command. However, it must be defined previous to its use (physically, it must be above where it is used in a new define).  Example: creating a right turn define turnright() { turnleft(); turnleft(); turnleft(); }  Example of use: if (frontIsBlocked) {turnright()}; Copyright © 2008 Technia. All rights reserved.
  • 17. How to Use Karel ✔ Make or open a Karel world * When Karel starts, it is in the world tab * Create walls by left clicking between two adjacent blocks * Place beepers if you wish * Save your world ✔ Create or open a program * Left click the Program tab * Choose Pacal or Java, then click the New button * Write your program, then click the Compile button * Save your program ✔ Run your program * Left click the Execute tab * Click the Initialize button * Click the Run button. Increase speed by increasing the Steps/Min number. Copyright © 2008 Technia. All rights reserved.
  • 18. Karel Resources • Otterbein college * Karel the Robot tutorial online in Pascal * URL: http://math.otterbein.edu/home/JKarelRobot/ParelTutorial/Karel.htm * Place beepers if you wish * Save your world • David Wittry web site * URL: http://www.apcomputerscience.com/karel/index.htm * Movie demos of Karel running * First edition of Karel J Robt: An Introduction to the Gentle Art of Object Oriented Programming in Java available free and online . Copyright © 2008 Technia. All rights reserved.
  • 19. Karel Exercises • Atlantic City High School * “Karel the Robot Introductory Role Play Classroom Activity” paper by Joseph A. Tosh * URL: http://pclc.pace.edu/~bergin/KarelJava2ed/KarelRolePlay.html • JR Masterman School * URL: http://geom.teachopensource.org/apcs/resources/resources_files/lecturek1-2007.p df * Slide set and a paper exercise . Copyright © 2008 Technia. All rights reserved.