Giter Site home page Giter Site logo

set-simulation's Introduction

Set simulation

Set is a fun cardgame

Game flow

game-flow

How to set up repo for development

  1. Prerequisites:
    1. Pyenv (install with brew install pyenv),
    2. Python 3.8.1 (install with Pyenv install 3.8.1),
    3. Pyenv virtualenv plugin (install with brew install pyenv-virtualenv)
  2. Set the .python-version file to whatever Python version you have/want to use
  3. Test with pyenv versions from the terminal

How to run simulation

From the terminal run python -m src.main

Columns of SET simulation data

  1. game_id - the ID of a complete game of SET
  2. round_id - the ID of a round in SET which includes looking for SETs, removing one (if any) and replacing the removed cards from the deck (if any). game_id and round_id are the keys of the table.
  3. round_type - one of three types:
    1. normal - deck not empty, at least 1 SET found
    2. no-set - deck not empty, no SETs found
    3. no-deck - deck empty, looking for set
  4. is_first_round - True if first round, False otherwise
  5. is_last_round - True if last round, False otherwise
  6. date_time
  7. num_cards_table - number of cards on the table at the beginning of the round
  8. num_cards_deck - number of cards in the deck at the beginning of the round
  9. num_sets - number of SETs at the beginning of the round
  10. cards_table - cards on the table
  11. cards_deck - cards in the deck
  12. sets - cards of SETs grouped
  13. chosen_set

set-simulation's People

Contributors

lepeti 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.