summaryrefslogtreecommitdiff
path: root/src/Q8/Point.java
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-03 15:12:34 -0600
committermo khan <mo@mokhan.ca>2019-08-03 15:12:34 -0600
commit1399a0ba315e44d42f0bc0c88592230fee073e17 (patch)
tree3bdafd146e100d4210237de86e0c58556e1bcfc4 /src/Q8/Point.java
parent8e7b0d4991149313db31b0e6fba84d3e90990eac (diff)
convert diagram from assignment to code
Diffstat (limited to 'src/Q8/Point.java')
-rw-r--r--src/Q8/Point.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Q8/Point.java b/src/Q8/Point.java
new file mode 100644
index 0000000..a1196ce
--- /dev/null
+++ b/src/Q8/Point.java
@@ -0,0 +1,18 @@
+package Q8;
+
+public class Point {
+ private int player;
+ private int score;
+ private static final int PLAYER1 = 0;
+ private static final int PLAYER2 = 1;
+ private String stroke;
+
+ public Point(int player, String stroke, int value) {
+ this.player = player;
+ this.stroke = stroke;
+ }
+
+ public int getPlayer() { return 0; }
+ public int getScore() { return 0; }
+ public String getStroke() { return ""; }
+}