Fritz Hausmann
/
Bertl_GoToBeeper
GoToBeeper
main.cpp@0:4d30cd90cd09, 2015-04-23 (annotated)
- Committer:
- fritzhausmann
- Date:
- Thu Apr 23 12:06:10 2015 +0000
- Revision:
- 0:4d30cd90cd09
GoToBeeper
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fritzhausmann | 0:4d30cd90cd09 | 1 | #include "ur_Bertl.h" |
fritzhausmann | 0:4d30cd90cd09 | 2 | #include "mbed.h" |
fritzhausmann | 0:4d30cd90cd09 | 3 | #include "const.h" |
fritzhausmann | 0:4d30cd90cd09 | 4 | |
fritzhausmann | 0:4d30cd90cd09 | 5 | int main() |
fritzhausmann | 0:4d30cd90cd09 | 6 | { |
fritzhausmann | 0:4d30cd90cd09 | 7 | ur_Bertl karel; |
fritzhausmann | 0:4d30cd90cd09 | 8 | |
fritzhausmann | 0:4d30cd90cd09 | 9 | while(!karel.NextToABeeper()) |
fritzhausmann | 0:4d30cd90cd09 | 10 | karel.Move(); |
fritzhausmann | 0:4d30cd90cd09 | 11 | |
fritzhausmann | 0:4d30cd90cd09 | 12 | while(karel.NextToABeeper()) |
fritzhausmann | 0:4d30cd90cd09 | 13 | karel.PickBeeper(); |
fritzhausmann | 0:4d30cd90cd09 | 14 | |
fritzhausmann | 0:4d30cd90cd09 | 15 | } |