Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Person.Farmer "Farmer509" is successfully created!
- You have successfully employ someone!
- We have constructed a new building!
- ------------Command test in Person------------
- We will execute the orders one by one
- ------------Interpreter test in Person------------
- Now we add animal to animal list through interpreter
- Employee Successfully Raised A Pig!
- Employee Successfully Raised A Fish!
- Employee Successfully Raised A Sheep!
- Employee Successfully Raised A Chicken!
- Employee Successfully Raised A Pig!
- Farmer Successfully Raised A Chicken!
- The Chicken, Fish, Sheep, Pig Number is:
- ------------Iterator test in Person------------
- 2
- 1
- 1
- 2
- add pork
- add pork
- add fish
- add mutton
- add chicken
- add chicken
- Bark
- The Chicken, Fish, Sheep, Pig Number is:
- ------------Iterator test in Person------------
- 2
- 1
- 1
- 2
- You just bought 3 corn seeds
- You just bought 3 pasture seeds
- You just bought 4 rice seeds
- Employee Number Vistor Found that there are 0employees!
- You have successfully employ someone!
- The farmer find himself an employee to help him
- Employee Successfully Raised A Chicken!
- ------------Interpreter test in Person------------
- Now we add animal to animal list through interpreter
- Employee Successfully Raised A Pig!
- Employee Successfully Raised A Fish!
- Employee Successfully Raised A Sheep!
- You have successfully employ someone!
- An employee become the proxy of the farmer
- add eggs
- add eggs
- add eggs
- Eggs Number: 3
- ChikenMeat: 2
- Fishmeat Number: 1
- Mutton Number: 1
- Pork Number: 2
- Let's see what we have in the storage now.
- Pasture seeds: 3 Pasture product : 0
- Corn seeds: 3 Corn product : 0
- Rice seeds: 4 Rice product : 0
- Pasture seeds: 3 Pasture product : 0
- Corn seeds: 3 Corn product : 0
- Rice seeds: 4 Rice product : 0
- Back to the room
- Pet dog is sleeping!
- Bark
- Back to the room
- Animal Chicken sleep
- Back to the room
- Animal Pig sleep
- Pet dog won the fight!
- Pet dog won the fight!
- Chicken is flying!
- Pig is running!
- run
- Chicken is running!
- A new Chicken is born!
- A new Pig is born!
- Chicken do shower in sand.
- Pig do shower in water.
- Chicken meat: 2
- Eggs: 3
- Pork: 2
- add eggs
- Pigs have no external product.
- add chicken
- add pork
- Chicken meat: 3
- Eggs: 4
- Pork: 3
- state is dead
- state is dead
- state is alive
- state is alive
- First, there's a pet dog in our farm.
- ------------Adapter test-------------
- The dog is going to sleep.
- Back to the room
- Pet dog is sleeping!
- ------------Singleton test------------
- The dog is going to bark.
- Bark
- -----------------------------------
- And now a new chicken and a new pig are added into our farm.
- ------------Template test--------------
- The animals are going to sleep.
- Back to the room
- Animal Chicken sleep
- Back to the room
- Animal Pig sleep
- -----------------------------------
- The animals are going to fight with dog.
- Pet dog won the fight!
- Pet dog won the fight!
- -----------Bridge test-------------
- The animals are going to exercise.
- Chicken is flying!
- Pig is running!
- -----------Strategy test--------------
- Chicken can also run after 'trained'.
- run
- Chicken is running!
- -------------Prototype test------------
- The animals are going to breed.
- A new Chicken is born!
- A new Pig is born!
- -------------Chain of Responsibility test--------------
- The animals are going to do shower.
- Chicken do shower in sand.
- Pig do shower in water.
- ------------Abstract Factory test--------------
- Let's see how many product do we have before animals produce products.
- Chicken meat: 3
- Eggs: 4
- Pork: 3
- -----------------------------------
- The animals are going to produce external product.
- add eggs
- Pigs have no external product.
- -----------------------------------
- The animals are going to produce internal product.
- add chicken
- add pork
- -----------------------------------
- Let's see how many product do we have after animals produce products.
- Chicken meat: 4
- Eggs: 5
- Pork: 4
- ------------Memento test------------
- Now let's check the states of the animals.
- state is dead
- state is dead
- I missed them, so I told the god to give them back to me.
- The dead animals regain life.
- state is alive
- state is alive
- Let's see what we have in the storage now.
- Pasture seeds: 3 Pasture product : 0
- Corn seeds: 3 Corn product : 0
- Rice seeds: 4 Rice product : 0
- ------------Singleton test in Person------------
- The program should begin with creating a Farmer!
- ------------FlyWeight test in Person------------
- Now the Farmer can employ some hardworking employees.
- You have successfully employ someone!
- You have successfully employ someone!
- ------------Builder test in Item------------
- As there are some people, they together can build a farmland!
- We have constructed a new building!
- ------------Proxy test in Person------------
- The farmer is really lazy, so all the work can only be done by employee
- ------------Command test in Person------------
- We will execute the orders one by one
- ------------Interpreter test in Person------------
- Now we add animal to animal list through interpreter
- Employee Successfully Raised A Pig!
- Employee Successfully Raised A Fish!
- Employee Successfully Raised A Sheep!
- Employee Successfully Raised A Chicken!
- Employee Successfully Raised A Pig!
- ------------Decorator test in Person------------
- When all the employee is not available, the farmer can do his work via a decorator.
- Farmer Successfully Raised A Chicken!
- The Chicken, Fish, Sheep, Pig Number is:
- ------------Iterator test in Person------------
- 7
- 3
- 3
- 7
- ------------Observer test in Person------------
- The farmer is getting hungry, so the employee kill the animals for meet.
- add pork
- add pork
- add pork
- add pork
- add pork
- add pork
- add pork
- add fish
- add fish
- add fish
- add mutton
- add mutton
- add mutton
- add chicken
- add chicken
- add chicken
- add chicken
- add chicken
- add chicken
- add chicken
- Bark
- The Chicken, Fish, Sheep, Pig Number is:
- ------------Iterator test in Person------------
- 7
- 3
- 3
- 7
- Now the farmer is tired of the meet, he want some plants instead.
- Before we plant anything, we should shop some seeds
- You just bought 3 corn seeds
- You just bought 3 pasture seeds
- You just bought 4 rice seeds
- ------------------Abstract Factory in Plant------------------
- Let's get different kinds of new plants!
- you've got a new corn!
- you've got a new corn!
- you've got a new corn!
- you've got a new corn!
- you've got a new corn!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- you've got a new rice!
- You don't have any rice seed. go buy some
- you've got a new pasture!
- you've got a new pasture!
- Now we got different plants!
- Let's see what we have in the storage now.
- Pasture seeds: 4 Pasture product : 0
- Corn seeds: 1 Corn product : 0
- Rice seeds: 0 Rice product : 0
- ------------------Composite in Plant------------------
- Every corn has one reproductive organ, aka flower, which contains one pistil and one stamen.
- this is the flower.
- this is the pistil.
- this is the stamen.
- ------------------State & Template Method in Plant------------------
- Let's fertilize those plants!
- the growing Corn is now mature.
- the growing Corn is now mature.
- the growing Corn is now mature.
- the growing Corn is now mature.
- the growing Corn is now mature.
- the growing Pasture is now mature.
- the growing Pasture is now mature.
- Those pastures need to be fertilized twice.
- Let's try to fertilize them again.
- This mature Corn needs to be pollinated. Stop fertilizing it.
- This mature Corn needs to be pollinated. Stop fertilizing it.
- This mature Corn needs to be pollinated. Stop fertilizing it.
- This mature Corn needs to be pollinated. Stop fertilizing it.
- This mature Corn needs to be pollinated. Stop fertilizing it.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the growing Rice is now mature.
- the mature Pasture is now harvestable.
- the mature Pasture is now harvestable.
- Now they are harvestable. Let's harvest them!
- This Corn hasn't been harvestable yet.
- This Corn hasn't been harvestable yet.
- This Corn hasn't been harvestable yet.
- This Corn hasn't been harvestable yet.
- This Corn hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- This Rice hasn't been harvestable yet.
- the harvestable Pasture has been harvested. now it's dead.
- By harvesting this pasture, you got 5 pasture product.
- the harvestable Pasture has been harvested. now it's dead.
- By harvesting this pasture, you got 5 pasture product.
- Let's see what we have in the storage now.
- Pasture seeds: 4 Pasture product : 10
- Corn seeds: 1 Corn product : 0
- Rice seeds: 0 Rice product : 0
- ------------------Mediator & State & Strategy in Plant------------------
- Oops, those corns and rices need to be pollinated.
- one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
- one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
- one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
- one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
- one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- one rice is successfully artificial pollinated.the mature Rice is now harvestable.
- We just pollinated those corns. Let's harvest them!
- the harvestable Corn has been harvested. now it's dead.
- By harvesting this corn, you got 5 corn seeds and 1 corn product.
- the harvestable Corn has been harvested. now it's dead.
- By harvesting this corn, you got 5 corn seeds and 1 corn product.
- the harvestable Corn has been harvested. now it's dead.
- By harvesting this corn, you got 5 corn seeds and 1 corn product.
- the harvestable Corn has been harvested. now it's dead.
- By harvesting this corn, you got 5 corn seeds and 1 corn product.
- the harvestable Corn has been harvested. now it's dead.
- By harvesting this corn, you got 5 corn seeds and 1 corn product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- the harvestable Rice has been harvested. now it's dead.
- By harvesting this rice, you got 5 rice seeds and 1 rice product.
- Let's see what we have in the storage now.
- Pasture seeds: 4 Pasture product : 10
- Corn seeds: 26 Corn product : 5
- Rice seeds: 40 Rice product : 8
- ------------Visitor test in Person------------
- The employee know little about math, so they can only get employee number via visitor!
- Employee Number Vistor Found that there are 2employees!
- ------------Facade test in Person------------
- The Farm can order the employee to raise animals
- You have successfully employ someone!
- The farmer find himself an employee to help him
- Employee Successfully Raised A Chicken!
- ------------Interpreter test in Person------------
- Now we add animal to animal list through interpreter
- Employee Successfully Raised A Pig!
- Employee Successfully Raised A Fish!
- Employee Successfully Raised A Sheep!
- You have successfully employ someone!
- An employee become the proxy of the farmer
- add eggs
- add eggs
- add eggs
- add eggs
- add eggs
- add eggs
- add eggs
- add eggs
- Let's see what we get by growing plants and raising animals
- Eggs Number: 13
- ChikenMeat: 11
- Fishmeat Number: 4
- Mutton Number: 4
- Pork Number: 11
- Let's see what we have in the storage now.
- Pasture seeds: 4 Pasture product : 10
- Corn seeds: 26 Corn product : 5
- Rice seeds: 40 Rice product : 8
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement