diff --git a/Answers/40230112136/.gitignore b/Answers/40230112136/.gitignore
new file mode 100644
index 0000000..f68d109
--- /dev/null
+++ b/Answers/40230112136/.gitignore
@@ -0,0 +1,29 @@
+### IntelliJ IDEA ###
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/Answers/40230112136/.idea/.gitignore b/Answers/40230112136/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/Answers/40230112136/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/Answers/40230112136/.idea/misc.xml b/Answers/40230112136/.idea/misc.xml
new file mode 100644
index 0000000..6f29fee
--- /dev/null
+++ b/Answers/40230112136/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Answers/40230112136/.idea/modules.xml b/Answers/40230112136/.idea/modules.xml
new file mode 100644
index 0000000..20d5e64
--- /dev/null
+++ b/Answers/40230112136/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Answers/40230112136/queedich.iml b/Answers/40230112136/queedich.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Answers/40230112136/queedich.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Answers/40230112136/src/Main.java b/Answers/40230112136/src/Main.java
new file mode 100644
index 0000000..881c4a5
--- /dev/null
+++ b/Answers/40230112136/src/Main.java
@@ -0,0 +1,7 @@
+//TIP To Run code, press or
+// click the icon in the gutter.
+public class Main {
+ public static void main(String[] args) {
+
+ }
+}
\ No newline at end of file
diff --git a/Answers/40230112136/src/MyApp.java b/Answers/40230112136/src/MyApp.java
new file mode 100644
index 0000000..baccabc
--- /dev/null
+++ b/Answers/40230112136/src/MyApp.java
@@ -0,0 +1,6 @@
+public class MyApp {
+ public static void main(String[] args) {
+ match Match = new match();
+ Match.start();
+ }
+}
\ No newline at end of file
diff --git a/Answers/40230112136/src/beater.java b/Answers/40230112136/src/beater.java
new file mode 100644
index 0000000..6679d6d
--- /dev/null
+++ b/Answers/40230112136/src/beater.java
@@ -0,0 +1,17 @@
+import java.util.Random;
+
+public class beater extends player implements success {
+ beater(int number, String name) {
+ super(number, name);
+ }
+
+ public boolean issuccssful(){
+
+ Random rand = new Random();
+ int upperbound = 100;
+ int darsad = rand.nextInt(upperbound) + 1;
+ if(darsad <= 40 ){return true;}
+ else {return false;}
+
+ }
+}
diff --git a/Answers/40230112136/src/chaser.java b/Answers/40230112136/src/chaser.java
new file mode 100644
index 0000000..2c665d5
--- /dev/null
+++ b/Answers/40230112136/src/chaser.java
@@ -0,0 +1,14 @@
+import java.util.Random;
+
+public class chaser extends player implements success{
+ chaser(int number , String name)
+ {super(number, name);}
+ public boolean issuccssful(){
+
+ Random rand = new Random();
+ int upperbound = 100;
+ int darsad = rand.nextInt(upperbound) + 1;
+ if(darsad <= 30 ){return true;}
+ else{ return false;}
+ }
+}
diff --git a/Answers/40230112136/src/keeper.java b/Answers/40230112136/src/keeper.java
new file mode 100644
index 0000000..6ba1af2
--- /dev/null
+++ b/Answers/40230112136/src/keeper.java
@@ -0,0 +1,14 @@
+import java.util.Random;
+
+public class keeper extends player implements success{
+ keeper(int number , String name)
+ {super(number, name);}
+ public boolean issuccssful(){
+
+ Random rand = new Random();
+ int upperbound = 100;
+ int darsad = rand.nextInt(upperbound) + 1;
+ if(darsad <= 70 ){return true;}
+ else{return false;}
+ }
+}
diff --git a/Answers/40230112136/src/match.java b/Answers/40230112136/src/match.java
new file mode 100644
index 0000000..8be049a
--- /dev/null
+++ b/Answers/40230112136/src/match.java
@@ -0,0 +1,43 @@
+public class match {
+
+ public void start(){
+ team t1= new team();
+ team t2= new team();
+ for(int i=0 ; i<100 ; i++){
+ t1.play();
+ if(t1.snitch){break;}
+ t2.play();
+ if(t2.snitch){break;}
+ }
+
+ if(t1.snitch){
+ System.out.println("Team 1 got the snitch and wins with "+( 150 + t1.goal )+ "scores");
+ System.out.println("Team 2 scores " + t2.goal);
+ }
+ else if(t2.snitch){
+ System.out.println("Team 2 got the snitch and wins with "+( 150 + t2.goal )+ "scores");
+ System.out.println("Team 1 scores " + t1.goal);
+ }
+ else if(t1.goal > t2.goal)
+ {
+ System.out.println("Team 1 scores " + t1.goal);
+ System.out.println("Team 2 scores " + t2.goal);
+ System.out.println("Team 1 wins");
+ }
+ else if(t1.goal < t2.goal)
+ {
+ System.out.println("Team 1 scores " + t1.goal);
+ System.out.println("Team 2 scores " + t2.goal);
+ System.out.println("Team 2 wins");
+ }
+ else if(t1.goal == t2.goal)
+ {
+ System.out.println("Team 1 scores " + t1.goal);
+ System.out.println("Team 2 scores " + t2.goal);
+ System.out.println("The game ends in a draw.");
+ }
+
+
+
+ }
+}
diff --git a/Answers/40230112136/src/player.java b/Answers/40230112136/src/player.java
new file mode 100644
index 0000000..d5e1490
--- /dev/null
+++ b/Answers/40230112136/src/player.java
@@ -0,0 +1,12 @@
+public class player implements success {
+
+ public int _number;
+ public String _name;
+ player(int number , String name) {
+ _name = name;
+ _number = number;
+ }
+ public boolean issuccssful(){
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/Answers/40230112136/src/seeker.java b/Answers/40230112136/src/seeker.java
new file mode 100644
index 0000000..21f4366
--- /dev/null
+++ b/Answers/40230112136/src/seeker.java
@@ -0,0 +1,16 @@
+import java.util.Random;
+
+public class seeker extends player implements success{
+ seeker(int number , String name)
+ {super(number, name);}
+ public boolean issuccssful(){
+
+ Random rand = new Random();
+ int upperbound = 100;
+ int darsad = rand.nextInt(upperbound) + 1;
+ if(darsad <= 5 ){return true;}
+ else {return false;}
+
+ }
+
+}
diff --git a/Answers/40230112136/src/success.java b/Answers/40230112136/src/success.java
new file mode 100644
index 0000000..f2e589c
--- /dev/null
+++ b/Answers/40230112136/src/success.java
@@ -0,0 +1,5 @@
+public interface success {
+ public boolean issuccssful();
+
+
+}
diff --git a/Answers/40230112136/src/team.java b/Answers/40230112136/src/team.java
new file mode 100644
index 0000000..2702716
--- /dev/null
+++ b/Answers/40230112136/src/team.java
@@ -0,0 +1,27 @@
+public class team {
+ keeper k= new keeper( 1 , "k");
+ seeker s= new seeker(2, "s");
+ chaser ch1 = new chaser(3, "ch1");
+ chaser ch2 = new chaser(4,"ch2");
+ chaser ch3 = new chaser(5, "ch3");
+ beater b1= new beater(6 ,"b1");
+ beater b2= new beater(7 , "b2");
+
+ int goal=0;
+
+ private void setgoal(){
+ goal++;
+ }
+ boolean snitch = false;
+
+ public void play() {
+ if(s.issuccssful()) snitch = true;
+ boolean first = k.issuccssful();
+ boolean second = (b1.issuccssful() || b2.issuccssful());
+ boolean third = ((ch1.issuccssful() && ch2.issuccssful()) || (ch2.issuccssful() && ch3.issuccssful()) || (ch1.issuccssful() && ch3.issuccssful()));
+
+ if (first && second && third) {
+ setgoal();
+ }
+ }
+}