From 26fa65ff48db9b608d18435a596c857dbac6b5aa Mon Sep 17 00:00:00 2001
From: Ari Trachtenberg <trachten@bu.edu>
Date: Sat, 5 Oct 2024 19:50:18 -0400
Subject: [PATCH] add getBoardSquare

---
 ttt_interface/ttt.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ttt_interface/ttt.cpp b/ttt_interface/ttt.cpp
index 9585fa1..abd650e 100644
--- a/ttt_interface/ttt.cpp
+++ b/ttt_interface/ttt.cpp
@@ -200,6 +200,10 @@ int getCols(GAME_CODE theGameCode) {
   return strToInt(parseGameStatus(theGameCode)["cols"]);
 }
 
+int getInARow(GAME_CODE theGameCode) {
+  return strToInt(parseGameStatus(theGameCode)["inARow"]);
+}
+
 string getBoard(GAME_CODE theGameCode) {
   return parseGameStatus(theGameCode)["board"];
 }
-- 
GitLab