-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab2_Example.txt
More file actions
92 lines (74 loc) · 1.09 KB
/
Lab2_Example.txt
File metadata and controls
92 lines (74 loc) · 1.09 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
>>> ADD Wheat 10 TO Field1
>>> ADD (Corn 6, (Wheat 9, (Soy 2, Barley 1123))) TO Field1
Entity added to location!
>>> SHOW CROPS
Field1:
Corn 6
Wheat 9
Soy 2
Barley 1123
>>> ADD (Wheat 1, Corn 4) TO Field1
Entity added to location!
>>> SHOW CROPS
Field1:
Corn 10
Wheat 10
Soy 2
Barley 1123
>>> PLANT Corn 10 TO Field1
Crops planted!
>>> SHOW PLANTED
Field1:
Corn 10
>>> SHOW CROPS
Field1:
Corn 0
Wheat 10
Soy 2
Barley 1123
>>> HARVEST Corn 10 FROM Field1
Crops harvested!
>>> SHOW CROPS
Field1:
Corn 40
Wheat 10
Soy 2
Barley 1123
>>> ADD ((Cows 10, Chickens 20), (Sheep 5, Pigs 15)) TO Barn1
Entity added to location!
>>> SHOW LIVESTOCK
Barn1:
Cows 10
Chickens 20
Sheep 5
Pigs 15
>>> ADD Cows 1 TO Barn2
Entity added to location!
>>> SHOW LIVESTOCK
Barn1:
Cows 10
Chickens 20
Sheep 5
Pigs 15
Barn2:
Cows 1
>>> REMOVE Cows 2 FROM Barn2
ERROR:Insufficient quantity of livestock
>>> SHOW FARM
Crops:
Field1:
Corn 40
Wheat 10
Soy 2
Barley 1123
Planted:
Field1:
Corn 0
Livestock:
Barn1:
Cows 10
Chickens 20
Sheep 5
Pigs 15
Barn2:
Cows 1