Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- kornInJedeEcke();
- }
- void laufeBisZurWand() {
- while (vornFrei()){
- vor();
- }
- }
- void geheEcke(){
- laufeBisZurWand();
- linksUm();
- laufeBisZurWand();
- linksUm();
- }
- void kornInJedeEcke() {
- int x=0;
- int y=0;
- int i=0;
- int j=0;
- geheEcke();
- while(!kornDa()){
- x=0;
- y=0;
- gib();
- while(vornFrei()){
- vor();
- x=x+1;
- }
- gib();
- linksUm();
- while(vornFrei()){
- vor();
- y=y+1;
- }
- linksUm();
- }
- x=(x/2)-1;
- y=(y/2)-1;
- for (i=0;i<=x ;i++){
- vor();
- }
- linksUm();
- for (j=0;j<=y ;j++){
- vor();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment