Swiftpack.co - strategic-games/hangman as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by strategic-games.
strategic-games/hangman 0.6
Play and simulate strategic board games
⭐️ 0
🕓 5 years ago
.package(url: "https://github.com/strategic-games/hangman.git", from: "0.6")

hangman

This package was created for academic use. It contains a Swift implementation of a strategic game and a CLI tool for creating game simulations.

Requirements

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

Installation

Mac OS

  • Go to releases tab
  • download the installation package (pkg file) for the latest release.
  • open the package and follow installation instructions
  • if OS X complains about missing signature, right-click the pkg and choose open

Build from source

Xcodebuild

# 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-.pkg file will bi placed in /tmp. Go there and install the pkg.

Swift

# 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

GitHub

link
Stars: 0
Last commit: 5 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Release 0.6
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