This package was created for academic use. It contains a Swift implementation of a strategic game and a CLI tool for creating game simulations.
This is used on Mac OS, but it might also run on Linux. You should have Swift 4.2 installed.
You need the protoc compiler and the swift plugin to build the included protocol buffers schema. See the plugin repo for more information.
# Install via homebrew
brew install swift-protobuf
# Clone this repo
cd ~/documents/code
git clone --recurse-submodules [email protected]:strategic-games/hangman.git
cd hangman
# Generate proto schema
./Scripts/generate-proto.sh
# Build with xcodebuild
xcodebuild install -scheme hangman-Package
The hangman-
# Clone this repo
cd ~/documents/code
git clone --recurse-submodules [email protected]:strategic-games/hangman.git
cd hangman
# Generate proto schema
./Scripts/generate-proto.sh
# Build with swift
swift build -c release
# Run hangman
swift run -c release hangman --help
# Copy hangman to a binary search path where it is found from anywhere (optional)
cp .build/release/hangman ~/bin/
hangman --help
link |
Stars: 0 |
Last commit: 5 years ago |
Added begriffix settings for variable direction restriction in first and other turns
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics