-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestsabi.java
More file actions
53 lines (49 loc) · 1.3 KB
/
testsabi.java
File metadata and controls
53 lines (49 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import de.hamster.debugger.model.Territorium;import de.hamster.debugger.model.Territory;import de.hamster.model.HamsterException;import de.hamster.model.HamsterInitialisierungsException;import de.hamster.model.HamsterNichtInitialisiertException;import de.hamster.model.KachelLeerException;import de.hamster.model.MauerDaException;import de.hamster.model.MaulLeerException;import de.hamster.model.MouthEmptyException;import de.hamster.model.WallInFrontException;import de.hamster.model.TileEmptyException;public class testsabi extends de.hamster.debugger.model.IHamster implements de.hamster.model.HamsterProgram {public void main() {
wegTest();
/*while (vornFrei () ){ vor(); }
rechtsUm() ;*/
}
void rechtsUm()
{
linksUm() ;
linksUm() ;
linksUm() ;
}
void laufBisWand () {
while (vornFrei () ){
vor();
}}
void wegTest () {
laufBisWand ();
rechtsUm();
if (vornFrei(public void main() {
wegTest();
/*while (vornFrei () ){ vor(); }
rechtsUm() ;*/
}
void rechtsUm()
{
linksUm() ;
linksUm() ;
linksUm() ;
}
void laufBisWand () {
while (vornFrei () ){
vor();
}}
void wegTest () {
laufBisWand ();
rechtsUm();
if (vornFrei() ) {
laufBisWand();
}else{
laufBisWand();
if (vornFrei() ) {
laufBisWand();
}else{
laufBisWand();
if (vornFrei() ) {
laufBisWand();
}
wegTest();
}}}}