Skip to content

Classic Stratego board game implemented in C++

Notifications You must be signed in to change notification settings

WojtekMs/stratego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stratego

Classical stratego game with fresh graphics! Game is designed for hot seat, which means 2 players play on 1 computer. Game additionally contains Menu screen which allows to check Game Rules for newcomers :) There is interesting feature added which sets units on the board in random order in the initial phase, sometimes set proposed by the computer is very interesting. Entire interface is based on mouse. Initializing units is done by draggining units into the desired field. In case you made a mistake or decided to place your units otherwise, you can use the Remove button after selecting the unit. When game begins after each move players must approve their turn by clicking End Turn button which will show information box, that the next player turn is about to begin in order to give players time to change seats. In my game units are marked as:

  • Flag marked with 'F'
  • Spy is marked as 'S'
  • Bomb is marked as 'B'
    All other units are marked by their values, with the exception:
  • '2' is indeed a Scout
  • '3' is indeed a Miner

Main Menu

How to build

To build this application you need:

  • C++ compiler with support for C++23 (eg: gcc14)
  • CMake
  • conan2

If you are using conan2 for the first time detect your profile: conan profile detect

Make sure that your cwd is the project root

conan install . --build=missing -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True
conan build .
cd build/Debug
./stratego

Acknowledgements

Textures used from this Stratego game: Stratego game

Font used from this Battleships game: Battleships game

Created with the help of SFML documentation and sources: Manage different screens

Game Screen Shots

About

Classic Stratego board game implemented in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages