From 00421e50ddc7b27b4bd57a9ba1d94c9ec215f968 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Oct 2019 17:48:47 +0200 Subject: [PATCH] now computer starts the game --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index e79cb85..03a4e6e 100644 --- a/main.cpp +++ b/main.cpp @@ -112,7 +112,7 @@ int main() rightLine.setSize(sf::Vector2f(THICKNESS, (WIDTH_HEIGHT - THICKNESS) * sqrt(2))); rightLine.setRotation(45); - sf::Font font; + sf::Font font; font.loadFromFile("arial.ttf"); endGameText.setCharacterSize(50); @@ -123,7 +123,8 @@ int main() endGameText.setOutlineThickness(10); endGameText.setOutlineColor(sf::Color::Black); - //startMove(gameState); + //If you want to start (instead of the computer) comment the line below. + startMove(gameState); while (window.isOpen())