Karel is an educational programming language for beginners, created by Richard E. Pattis in his book Karel The Robot: A Gentle Introduction to the Art of Programming @wiki
If you are not familiar with what is Karel in programming, please read this wiki page. As I mentioned in one of my previous blog post, I got to know about Karel, while preparing for a session of Programming for non programmers. It's such a simple language that, anybody can teach programming or use for self study. Universities such as stanford are using this simple language to teach programming methodology to it's students. If you studied / studying in new generation Indian engineering colleges, sorry you don't get this easy option of studying programming. I don't want to use the term 'self financing colleges' where your teachers will be your seniors who just passed in the previous year. I am sure on this, because I studied in this type of college, where I had seen people repeatedly saying 'public static void main...public static void main' during the lab exam days.
- I found the language very simple & interesting to teach programming.
- The main attraction is the way, we can teach programming to non programmers by simply saying we are controlling a Robot named Karel by some instructions.
- I could see some interesting simulators where an animated character Karel, is acting as per the program execution.
- None of those simulators are easy to set up in our environment.
- Either they are written in Java or other language which is not easy to set up in my environment.
- Got one .Net simulator using Visual J++, and that story I explained in previous post
- No HTML JS based simulators, which can be easily set up as browsing a web site.
- After more google, I decided to create the first one myself.
What Karel language supports
There are fundamental 2 things which Karel can do.They are
- move (move one cell in the direction which Karel facing at the moment)
//Program to turn Karel right
How to work with Karel simulator
Want to try HTML 5 JS Karel simulator
I have hosted it in my own website http://joymononline.in . URL link is
Source code of Karel simulator
I will upload the source later to one public repository.