From 81ddcd1bb9b245064d2c169e153ad85f7402b363 Mon Sep 17 00:00:00 2001
From: William Billingsley <wbillingsley@cantab.net>
Date: Sat, 29 Mar 2025 17:38:25 +1100
Subject: [PATCH] Fix bug where instructions said to implement isInCentre but
 I'd already implemented it

---
 README.md                                  | 1 -
 src/main/scala/assignmentTwo/reversi.scala | 2 --
 2 files changed, 3 deletions(-)

diff --git a/README.md b/README.md
index c91ff1e..25382f5 100644
--- a/README.md
+++ b/README.md
@@ -82,7 +82,6 @@ For this exercise, **the computer should always make the move that leaves it wit
 Before you get to that, though, you'll find several other methods that you need to implement:
 
 * getting a line of squares travelling in a direction (N, NE, E, SE, S, SW, W, or NW) from a square to the edge of the board
-* determining if a square is in the centre 4 squares (3, 3), (3, 4), (4, 3), (4, 4)
 * counting the number of pieces for each player
 * determining what pieces would be flipped by placing a piece in a location
 * determining whether a move would be valid for a player
diff --git a/src/main/scala/assignmentTwo/reversi.scala b/src/main/scala/assignmentTwo/reversi.scala
index abf4730..627cd17 100644
--- a/src/main/scala/assignmentTwo/reversi.scala
+++ b/src/main/scala/assignmentTwo/reversi.scala
@@ -63,11 +63,9 @@ extension (l:Location) {
         (0 until boardSize).contains(x) && (0 until boardSize).contains(y)
 
     // Whether the location l is in the centre squares that are legal for the first 4 moves in Reversi
-    // You need to implement this
     def isInCentre:Boolean = 
         val (x, y) = l
         (x == 3 || x == 4) && (y == 3 || y == 4)
-        // ???
 
     // Let's us say, for instance a1 instead of (0, 7). Note that locations are from the top-left down,
     // but we're used to seeing chess locations written with a1 in the bottom left
-- 
GitLab