Giter Site home page Giter Site logo

arcan.a's Introduction

Arcan.a

C Static Library for the Tarot

Img

Welcome to Arcan.a
Your 10-card tarot reading:
Card 1: Key 60 is in the Minor Arcana: The Paige of Swords, isInverted: 0
Card 2: Key 45 is in the Minor Arcana: The 10 of Cups, isInverted: 1
Card 3: Key 43 is in the Minor Arcana: The 8 of Cups, isInverted: 0
Card 4: Key 9 is in the MAJOR ARCANA: IX: THE HERMIT, isInverted: 1
Card 5: Key 71 is in the Minor Arcana: The 8 of Pentacles, isInverted: 1
Card 6: Key 41 is in the Minor Arcana: The 6 of Cups, isInverted: 1
Card 7: Key 74 is in the Minor Arcana: The Paige of Pentacles, isInverted: 1
Card 8: Key 41 is in the Minor Arcana: The 6 of Cups, isInverted: 1
Card 9: Key 65 is in the Minor Arcana: The 2 of Pentacles, isInverted: 1
Card 10: Key 68 is in the Minor Arcana: The 5 of Pentacles, isInverted: 0
Best of luck!

Process finished with exit code 0

Features

Cards

  • Generate Deck

  • Shuffle Deck with Fisher-Yeates

  • Identify card from index 0-77

  • Randomly assign inversion for card

Dealing

  • Extract chosen court card
    • Shuffle remaining deck
  • Deal top 10 cards

API

  • Swift Package - simply hit this repo with Xcode / swiftpm
    • swift build
    • swift run ArcanaDriver

Cross-platform

  • Cmake Project for WSL/Linux imports arc4random_uniform from bsd.h
  • swiftpm system module for bsd.h

Driver Program

  • Interactive CLI
    • getchar() used to stagger reveal of cards.

TODO

  • C Source cleanup

  • Refine Swift Interface

    • Wrapper to be used in GUI
  • Analyse reading (primarily suits / major arcana etc)

arcan.a's People

Contributors

jwamin avatar

Watchers

James Cloos avatar  avatar

arcan.a's Issues

C Source cleanup

Organize CLI stdout methods independent from main logic.

In-line Documentation

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.