Giter VIP home page Giter VIP logo

set-game-scala's Introduction

SET Game

License: GPLv3 Build Status Coverage

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, purple

A 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:

docker build -t set-game-scala .

Then you can run the game by executing the following command:

docker run -it set-game-scala

On Linux, you can execute the following commands instead to run the game with enabled GUI:

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

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.

set-game-scala's People

Contributors

markoboger avatar matthiaselbel avatar patzly avatar yeghishe avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.