Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patzly/set-game-scala
An unofficial Scala version of the SET game for Software Engineering classes at HTWG Konstanz
https://github.com/patzly/set-game-scala
functional-programming game-development scala set-game
Last synced: about 5 hours ago
JSON representation
An unofficial Scala version of the SET game for Software Engineering classes at HTWG Konstanz
- Host: GitHub
- URL: https://github.com/patzly/set-game-scala
- Owner: patzly
- License: gpl-3.0
- Created: 2023-10-19T12:22:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T13:40:35.000Z (21 days ago)
- Last Synced: 2024-10-28T16:59:11.129Z (21 days ago)
- Topics: functional-programming, game-development, scala, set-game
- Language: Scala
- Homepage:
- Size: 2.34 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SET Game
[![License: GPLv3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl.txt) [![Build Status](https://img.shields.io/github/actions/workflow/status/patzly/set-game-scala/scala.yml?branch=main&label=Build)](https://github.com/patzly/set-game-scala/actions/workflows/scala.yml) [![Coverage](https://img.shields.io/coveralls/github/patzly/set-game-scala/main?label=Coverage)](https://coveralls.io/github/patzly/set-game-scala?branch=main)
This is an unofficial Scala version of the SET game for Software Engineering classes at HTWG Konstanz.
The object of the game is to identify a 'SET' of three cards from 12 cards placed face up on the table. Each card has four features:
* **Number:** 1, 2, 3
* **Symbol:** oval, squiggle, diamond
* **Shading:** solid, striped, outlined
* **Color:** red, green, purpleA SET contains of three cards in which each of the cards' features, looked at one-by-one, are the same on each card, or, are different on each card.
If two cards are the same and one card is different in any feature, then it is not a SET. A SET must be either all the same or all different in each individual feature.In easy mode, the game starts with 9 cards instead of 12 and without the shading feature. This makes it easier to find a SET.
## Features
* Singleplayer/Multiplayer mode
* "Easy start" mode
* Interactive GUI, game state representation as text-based UI## Screenshots
## Docker
You can run SET in a Docker container. To do so, you need to have Docker installed on your machine.
First build the Docker image by running the following command in the root directory of the project:```bash
docker build -t set-game-scala .
```Then you can run the game by executing the following command:
```bash
docker run -it set-game-scala
```On Linux, you can execute the following commands instead to run the game with enabled GUI:
```bash
sudo sxhost +local:docker
sudo docker run -it -e HEADLESS=false -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix set-game-scala
```## License
Copyright © 2023-2024 Matthias Elbel & Patrick Zedler. All rights reserved.
[GNU General Public License version 3](https://www.gnu.org/licenses/gpl.txt)
> SET Game is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
>
> SET Game is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.