Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:3040db070a3a, committed 2015-05-08
- Comitter:
- davidhasenhuettl
- Date:
- Fri May 08 09:20:27 2015 +0000
- Parent:
- 0:d3427d975dfe
- Commit message:
- Needs A Serial Output to work as expected
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 08 08:31:38 2015 +0000
+++ b/main.cpp Fri May 08 09:20:27 2015 +0000
@@ -12,8 +12,7 @@
ur_Bertl karel;
- while( karel.FrontIsClear())
- {
+ while( karel.FrontIsClear()){
if (karel.NextToABeeper()){
karel.PickBeeper();
Beeper = Beeper+1;
@@ -22,9 +21,10 @@
karel.Move();
moves++;
}
-
- else
- karel.TurnLeft();
+ else {
+ karel.Move();
+ moves++;
+ }
}
karel.Move();