From 8cb13ce0a6b2dd62491ec76459760514c6684a7a Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 3 Dec 2021 10:36:53 +0100 Subject: [PATCH] change in getCurrentPlayerWinpoints --- src/ch/zhaw/catan/SiedlerGame.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ch/zhaw/catan/SiedlerGame.java b/src/ch/zhaw/catan/SiedlerGame.java index af4d862..af78ce0 100644 --- a/src/ch/zhaw/catan/SiedlerGame.java +++ b/src/ch/zhaw/catan/SiedlerGame.java @@ -407,10 +407,16 @@ public class SiedlerGame { winPoints ++; } } - //todo add points for longest road + if(getLongestRoadFaction() == getCurrentPlayerFaction()){ + winPoints = winPoints + 2; + } return winPoints; } + private Faction getLongestRoadFaction() { + return null; //todo implement + } + /** * Places the thief on the specified field and steals a random resource card (if