Open browser console F12 to see errors
In case, when web freeze, that means you have some infinite loop
F11 | Full-screen editor |
Ctrl-Space | Autocomplete |
Shift-Tab | Indent Less |
Shift-Ctrl-K | Delete Line |
Alt-Q | Wrap Lines |
Ctrl-T | Transpose Chars |
Alt-Left | Go Subword Left |
Alt-Right | Go Subword Right |
Ctrl-Up | Scroll Line Up |
Ctrl-Down | Scroll Line Down |
Ctrl-L | Select Line |
Shift-Ctrl-L | Split Selection By Line |
Esc | Single Selection Top |
Ctrl-Enter | Insert Line After |
Shift-Ctrl-Enter | Insert Line Before |
Ctrl-D | Select Next Occurrence |
Shift-Ctrl-Space | Select Scope |
Shift-Ctrl-M | Select Between Brackets |
Ctrl-M | Go To Bracket |
Shift-Ctrl-Up | Swap Line Up |
Shift-Ctrl-Down | Swap Line Down |
Ctrl-/ | Toggle Comment Indented |
Ctrl-J | Join Lines |
Shift-Ctrl-D | Duplicate Line |
F9 | Sort Lines |
Ctrl-F9 | Sort Lines Insensitive |
F2 | Next Bookmark |
Shift-F2 | Prev Bookmark |
Ctrl-F2 | Toggle Bookmark |
Shift-Ctrl-F2 | Clear Bookmarks |
Alt-F2 | Select Bookmarks |
Backspace | Smart Backspace |
Ctrl-K Ctrl-K | Del Line Right |
Ctrl-K Ctrl-U | Upcase At Cursor |
Ctrl-K Ctrl-L | Downcase At Cursor |
Ctrl-K Ctrl-Space | Set Sublime Mark |
Ctrl-K Ctrl-A | Select To Sublime Mark |
Ctrl-K Ctrl-W | Delete To Sublime Mark |
Ctrl-K Ctrl-X | Swap With Sublime Mark |
Ctrl-K Ctrl-Y | Sublime Yank |
Ctrl-K Ctrl-C | Show In Center |
Ctrl-K Ctrl-G | Clear Bookmarks |
Ctrl-K Ctrl-Backspace | Del Line Left |
Ctrl-K Ctrl-0 | Unfold All |
Ctrl-K Ctrl-J | Unfold All |
Ctrl-Alt-Up | Add Cursor To Prev Line |
Ctrl-Alt-Down | Add Cursor To Next Line |
Ctrl-F3 | Find Under |
Shift-Ctrl-F3 | Find Under Previous |
Shift-Ctrl-[ | Fold |
Shift-Ctrl-] | Unfold |
Ctrl-H | Replace |
This is an online tool, that will help you with Karel.
There are many features ready for you, but we're still in development, so don't hessitate to report any bug.
Currently available features:
After click on RUN CODE button, your WORLD DATA and KAREL CODE will be saved in cookies, so you won't loose your changes in case of refresh or web freeze.
Don't foget to support us by clicking on LIKE or some ADVERT or PAYPAL DONATE :)You have to have main() and with turnOn() and turnOff().
This is not real C compiler, it's just evaluation as JS with few replacements that make it works.
Existing functions:
loop( times ) |
setStepDelay( miliseconds ) |
getStepDelay() |
beepersInBag() |
noBeepersInBag() |
frontIsClear() |
frontIsBlocked() |
leftIsClear() |
leftIsBlocked() |
rightIsClear() |
rightIsBlocked() |
facingNorth() |
notFacingNorth() |
facingSouth() |
notFacingSouth() |
facingEast() |
notFacingEast() |
facingWest() |
notFacingWest() |
beepersPresent() |
noBeepersPresent() |
movek() |
turnLeft() |
putBeeper() |
pickBeeper() |
Cheatsheet:
void walk(){
while( frontIsClear() ){
movek();
}
}
void turnNorth(){
while( notFacingNorth() ){
turnLeft();
}
}
void turnSouth(){
while( notFacingSouth() ){
turnLeft();
}
}
void turnWest(){
while( notFacingWest() ){
turnLeft();
}
}
void turnEast(){
while( notFacingEast() ){
turnLeft();
}
}
void turnRight() {
loop( 3 ){
turnLeft();
}
}
void turnAround() {
loop( 2 ){
turnLeft();
}
}
Your world has to start with ST.+ and ends with AVE. and it should look like real render after you paste it here. If not, then repair it manually, else it won't work!
You have to manually set Karel direction after load, because it will be NORTH as default.
Your WORLD DATA and KAREL CODE will be enclosed to report.
First line has 7 parameters, eg.:
9 | 6 | 2 | 3 | N | 10 |
WORLD_WIDTH | WORLD_HEIGHT | KAREL_X | KAREL_Y | KAREL_DIRECTION | BEEPERS_IN_BAG |
Next lines specify beepers or walls.
BEEPER has 4 parameters
B | 2 | 3 | 1 |
ALWAYS_B | WORLD_X | WORLD_Y | BEEPERS_QUANTITY |
WALL has 4 parameters
W | 2 | 3 | W |
ALWAYS_W | WORLD_X | WORLD_Y | WALL_DIRECTION can be N, S, W, E |