diff --git a/HELP b/HELP index d9a689e..ade37c5 100755 --- a/HELP +++ b/HELP @@ -4,17 +4,15 @@ MooBreeder is a simple cowbreeding game designed for educational use at Key Stage 3. It demonstrates the basic principles of selective breeding. - AIM - +------ The aim of the game is to breed a cow that is "excellent" for your chosen use. At the start of the game, you are asked to select this goal from -the options "dairy", "meat", or "plowing". You will be notified once you +the options "dairy", "beef", or "plowing". You will be notified once you have achieved your goal, and told how many generations you took to do so. - COWS - +--------- Each cow may be male or female and has four traits: "milk", "meat", "strength" and "aggression". Each trait is given an integer value - generally, higher is better (except in the case of "aggression"). @@ -23,23 +21,21 @@ Cows are rated for a given use with the formula: - rating = (traitvalue * 2) - (aggression^2) + rating = (traitvalue x 2) - (aggression^2) So if a dairy cow has a milk trait value of 12 and an aggression of 3, her rating will be 15. (A rating of 20 or above is considered "excellent".) - THE HERD - +---------------- The herd is the accumulation of all the cows you own. Initially, it will consist only of four cows that are randomly initialised and probably not very good at anything; as if you had just tamed four wild buffaloes. But as you breed your cows, your herd will continue to grow and hopefully start to contain some better animals (if you're a clever breeder...). - BREEDING - +--------------- When a bull and a cow breed, they produce either one or two calves. The calves' traits will depend on their parents', modified by a random factor. So if you breed a strong bull with a strong cow, you are more @@ -51,9 +47,8 @@ genetic and developmental problems. Thirdly, they may be at most three generations apart. - INTERFACE - +----------------- On the left you see a list of your entire herd. Double-click on an animal to have it added to a parent slot on the top right. When you have selected two parents, click on the `Breed` button to have them @@ -63,5 +58,5 @@ this animal from your herd. If you wish to save your game progress, you may do so via the -`File` menu. Restoring a previously saved game or resetting to a new +"File" menu. Restoring a previously saved game or resetting to a new game may be done from the same menu. diff --git a/HELP b/HELP index d9a689e..ade37c5 100755 --- a/HELP +++ b/HELP @@ -4,17 +4,15 @@ MooBreeder is a simple cowbreeding game designed for educational use at Key Stage 3. It demonstrates the basic principles of selective breeding. - AIM - +------ The aim of the game is to breed a cow that is "excellent" for your chosen use. At the start of the game, you are asked to select this goal from -the options "dairy", "meat", or "plowing". You will be notified once you +the options "dairy", "beef", or "plowing". You will be notified once you have achieved your goal, and told how many generations you took to do so. - COWS - +--------- Each cow may be male or female and has four traits: "milk", "meat", "strength" and "aggression". Each trait is given an integer value - generally, higher is better (except in the case of "aggression"). @@ -23,23 +21,21 @@ Cows are rated for a given use with the formula: - rating = (traitvalue * 2) - (aggression^2) + rating = (traitvalue x 2) - (aggression^2) So if a dairy cow has a milk trait value of 12 and an aggression of 3, her rating will be 15. (A rating of 20 or above is considered "excellent".) - THE HERD - +---------------- The herd is the accumulation of all the cows you own. Initially, it will consist only of four cows that are randomly initialised and probably not very good at anything; as if you had just tamed four wild buffaloes. But as you breed your cows, your herd will continue to grow and hopefully start to contain some better animals (if you're a clever breeder...). - BREEDING - +--------------- When a bull and a cow breed, they produce either one or two calves. The calves' traits will depend on their parents', modified by a random factor. So if you breed a strong bull with a strong cow, you are more @@ -51,9 +47,8 @@ genetic and developmental problems. Thirdly, they may be at most three generations apart. - INTERFACE - +----------------- On the left you see a list of your entire herd. Double-click on an animal to have it added to a parent slot on the top right. When you have selected two parents, click on the `Breed` button to have them @@ -63,5 +58,5 @@ this animal from your herd. If you wish to save your game progress, you may do so via the -`File` menu. Restoring a previously saved game or resetting to a new +"File" menu. Restoring a previously saved game or resetting to a new game may be done from the same menu. diff --git a/LICENSE b/LICENSE index d945816..17e6e05 100755 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT LICENSE -Copyright (c) 2018 Daniel Vedder +Copyright (c) 2018 Daniel Vedder, Amano Christian School Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/HELP b/HELP index d9a689e..ade37c5 100755 --- a/HELP +++ b/HELP @@ -4,17 +4,15 @@ MooBreeder is a simple cowbreeding game designed for educational use at Key Stage 3. It demonstrates the basic principles of selective breeding. - AIM - +------ The aim of the game is to breed a cow that is "excellent" for your chosen use. At the start of the game, you are asked to select this goal from -the options "dairy", "meat", or "plowing". You will be notified once you +the options "dairy", "beef", or "plowing". You will be notified once you have achieved your goal, and told how many generations you took to do so. - COWS - +--------- Each cow may be male or female and has four traits: "milk", "meat", "strength" and "aggression". Each trait is given an integer value - generally, higher is better (except in the case of "aggression"). @@ -23,23 +21,21 @@ Cows are rated for a given use with the formula: - rating = (traitvalue * 2) - (aggression^2) + rating = (traitvalue x 2) - (aggression^2) So if a dairy cow has a milk trait value of 12 and an aggression of 3, her rating will be 15. (A rating of 20 or above is considered "excellent".) - THE HERD - +---------------- The herd is the accumulation of all the cows you own. Initially, it will consist only of four cows that are randomly initialised and probably not very good at anything; as if you had just tamed four wild buffaloes. But as you breed your cows, your herd will continue to grow and hopefully start to contain some better animals (if you're a clever breeder...). - BREEDING - +--------------- When a bull and a cow breed, they produce either one or two calves. The calves' traits will depend on their parents', modified by a random factor. So if you breed a strong bull with a strong cow, you are more @@ -51,9 +47,8 @@ genetic and developmental problems. Thirdly, they may be at most three generations apart. - INTERFACE - +----------------- On the left you see a list of your entire herd. Double-click on an animal to have it added to a parent slot on the top right. When you have selected two parents, click on the `Breed` button to have them @@ -63,5 +58,5 @@ this animal from your herd. If you wish to save your game progress, you may do so via the -`File` menu. Restoring a previously saved game or resetting to a new +"File" menu. Restoring a previously saved game or resetting to a new game may be done from the same menu. diff --git a/LICENSE b/LICENSE index d945816..17e6e05 100755 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT LICENSE -Copyright (c) 2018 Daniel Vedder +Copyright (c) 2018 Daniel Vedder, Amano Christian School Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/MooBreeder.java b/MooBreeder.java index 093eb42..5032c81 100755 --- a/MooBreeder.java +++ b/MooBreeder.java @@ -353,7 +353,6 @@ @Override public void mouseClicked(MouseEvent me) { - System.out.println("Recognised a mouse event."); //DEBUG int selectionID = Integer.parseInt(me.getComponent().getName()); //Respond to the mouse click with an action or a context menu if (me.getButton() == MouseEvent.BUTTON3) { @@ -371,7 +370,6 @@ */ private void mouseMainAction(int selection) { - System.out.println("Carrying out mouse main action on animal #"+selection); //DEBUG if (Herd.getInstance().isParent(selection)) Herd.getInstance().removeParent(selection); else if (Herd.getInstance().isCalf(selection)) @@ -386,7 +384,6 @@ */ private void mouseSideAction(int selection, MouseEvent me) { - System.out.println("Carrying out mouse side action on animal #"+selection); //DEBUG //Initialise menu JPopupMenu contextMenu = new JPopupMenu(); JMenuItem item1 = new JMenuItem(); diff --git a/HELP b/HELP index d9a689e..ade37c5 100755 --- a/HELP +++ b/HELP @@ -4,17 +4,15 @@ MooBreeder is a simple cowbreeding game designed for educational use at Key Stage 3. It demonstrates the basic principles of selective breeding. - AIM - +------ The aim of the game is to breed a cow that is "excellent" for your chosen use. At the start of the game, you are asked to select this goal from -the options "dairy", "meat", or "plowing". You will be notified once you +the options "dairy", "beef", or "plowing". You will be notified once you have achieved your goal, and told how many generations you took to do so. - COWS - +--------- Each cow may be male or female and has four traits: "milk", "meat", "strength" and "aggression". Each trait is given an integer value - generally, higher is better (except in the case of "aggression"). @@ -23,23 +21,21 @@ Cows are rated for a given use with the formula: - rating = (traitvalue * 2) - (aggression^2) + rating = (traitvalue x 2) - (aggression^2) So if a dairy cow has a milk trait value of 12 and an aggression of 3, her rating will be 15. (A rating of 20 or above is considered "excellent".) - THE HERD - +---------------- The herd is the accumulation of all the cows you own. Initially, it will consist only of four cows that are randomly initialised and probably not very good at anything; as if you had just tamed four wild buffaloes. But as you breed your cows, your herd will continue to grow and hopefully start to contain some better animals (if you're a clever breeder...). - BREEDING - +--------------- When a bull and a cow breed, they produce either one or two calves. The calves' traits will depend on their parents', modified by a random factor. So if you breed a strong bull with a strong cow, you are more @@ -51,9 +47,8 @@ genetic and developmental problems. Thirdly, they may be at most three generations apart. - INTERFACE - +----------------- On the left you see a list of your entire herd. Double-click on an animal to have it added to a parent slot on the top right. When you have selected two parents, click on the `Breed` button to have them @@ -63,5 +58,5 @@ this animal from your herd. If you wish to save your game progress, you may do so via the -`File` menu. Restoring a previously saved game or resetting to a new +"File" menu. Restoring a previously saved game or resetting to a new game may be done from the same menu. diff --git a/LICENSE b/LICENSE index d945816..17e6e05 100755 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT LICENSE -Copyright (c) 2018 Daniel Vedder +Copyright (c) 2018 Daniel Vedder, Amano Christian School Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/MooBreeder.java b/MooBreeder.java index 093eb42..5032c81 100755 --- a/MooBreeder.java +++ b/MooBreeder.java @@ -353,7 +353,6 @@ @Override public void mouseClicked(MouseEvent me) { - System.out.println("Recognised a mouse event."); //DEBUG int selectionID = Integer.parseInt(me.getComponent().getName()); //Respond to the mouse click with an action or a context menu if (me.getButton() == MouseEvent.BUTTON3) { @@ -371,7 +370,6 @@ */ private void mouseMainAction(int selection) { - System.out.println("Carrying out mouse main action on animal #"+selection); //DEBUG if (Herd.getInstance().isParent(selection)) Herd.getInstance().removeParent(selection); else if (Herd.getInstance().isCalf(selection)) @@ -386,7 +384,6 @@ */ private void mouseSideAction(int selection, MouseEvent me) { - System.out.println("Carrying out mouse side action on animal #"+selection); //DEBUG //Initialise menu JPopupMenu contextMenu = new JPopupMenu(); JMenuItem item1 = new JMenuItem(); diff --git a/README.md b/README.md index 9eb5517..e5275b4 100755 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ ## Installation -Java JRE 7 or higher has to be installed. MooBreeder itself does not -have to be installed. Simply double-click the executable JAR file to -start the game. +Java JRE 7 or higher is required. MooBreeder itself does not have to +be installed. Simply double-click the executable JAR file to start +the game. If you are interested in the source code, you will find the current version at . diff --git a/HELP b/HELP index d9a689e..ade37c5 100755 --- a/HELP +++ b/HELP @@ -4,17 +4,15 @@ MooBreeder is a simple cowbreeding game designed for educational use at Key Stage 3. It demonstrates the basic principles of selective breeding. - AIM - +------ The aim of the game is to breed a cow that is "excellent" for your chosen use. At the start of the game, you are asked to select this goal from -the options "dairy", "meat", or "plowing". You will be notified once you +the options "dairy", "beef", or "plowing". You will be notified once you have achieved your goal, and told how many generations you took to do so. - COWS - +--------- Each cow may be male or female and has four traits: "milk", "meat", "strength" and "aggression". Each trait is given an integer value - generally, higher is better (except in the case of "aggression"). @@ -23,23 +21,21 @@ Cows are rated for a given use with the formula: - rating = (traitvalue * 2) - (aggression^2) + rating = (traitvalue x 2) - (aggression^2) So if a dairy cow has a milk trait value of 12 and an aggression of 3, her rating will be 15. (A rating of 20 or above is considered "excellent".) - THE HERD - +---------------- The herd is the accumulation of all the cows you own. Initially, it will consist only of four cows that are randomly initialised and probably not very good at anything; as if you had just tamed four wild buffaloes. But as you breed your cows, your herd will continue to grow and hopefully start to contain some better animals (if you're a clever breeder...). - BREEDING - +--------------- When a bull and a cow breed, they produce either one or two calves. The calves' traits will depend on their parents', modified by a random factor. So if you breed a strong bull with a strong cow, you are more @@ -51,9 +47,8 @@ genetic and developmental problems. Thirdly, they may be at most three generations apart. - INTERFACE - +----------------- On the left you see a list of your entire herd. Double-click on an animal to have it added to a parent slot on the top right. When you have selected two parents, click on the `Breed` button to have them @@ -63,5 +58,5 @@ this animal from your herd. If you wish to save your game progress, you may do so via the -`File` menu. Restoring a previously saved game or resetting to a new +"File" menu. Restoring a previously saved game or resetting to a new game may be done from the same menu. diff --git a/LICENSE b/LICENSE index d945816..17e6e05 100755 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT LICENSE -Copyright (c) 2018 Daniel Vedder +Copyright (c) 2018 Daniel Vedder, Amano Christian School Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/MooBreeder.java b/MooBreeder.java index 093eb42..5032c81 100755 --- a/MooBreeder.java +++ b/MooBreeder.java @@ -353,7 +353,6 @@ @Override public void mouseClicked(MouseEvent me) { - System.out.println("Recognised a mouse event."); //DEBUG int selectionID = Integer.parseInt(me.getComponent().getName()); //Respond to the mouse click with an action or a context menu if (me.getButton() == MouseEvent.BUTTON3) { @@ -371,7 +370,6 @@ */ private void mouseMainAction(int selection) { - System.out.println("Carrying out mouse main action on animal #"+selection); //DEBUG if (Herd.getInstance().isParent(selection)) Herd.getInstance().removeParent(selection); else if (Herd.getInstance().isCalf(selection)) @@ -386,7 +384,6 @@ */ private void mouseSideAction(int selection, MouseEvent me) { - System.out.println("Carrying out mouse side action on animal #"+selection); //DEBUG //Initialise menu JPopupMenu contextMenu = new JPopupMenu(); JMenuItem item1 = new JMenuItem(); diff --git a/README.md b/README.md index 9eb5517..e5275b4 100755 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ ## Installation -Java JRE 7 or higher has to be installed. MooBreeder itself does not -have to be installed. Simply double-click the executable JAR file to -start the game. +Java JRE 7 or higher is required. MooBreeder itself does not have to +be installed. Simply double-click the executable JAR file to start +the game. If you are interested in the source code, you will find the current version at . diff --git a/run.sh b/run.sh index 2035cc0..5d96c88 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,6 @@ # Compile, package and run MooBreeder javac *.java -jar cfe MooBreeder.jar MooBreeder LICENSE HELP *.class +jar cfe MooBreeder.jar MooBreeder LICENSE HELP *.java *.class rm *.class java -jar MooBreeder.jar