Code Monkey home page Code Monkey logo

tsq_randomizer's Introduction

PyTSQ Randomizer

This project is a learning project intended to be an easily extensible tool for randomizing the cards used in a non-epic game of Thunderstone Quest. Future versions will also contain the ability to select specific quests and have the correct card lists shown. Eventually this will grow to be a component of a digital version of TSQ

author = "David Marienburg"
version = "0.0.5a"
last_updated = "2020/12/06"


How To Use


In its current state pyTSQ Randomizer can be used to create a fully randomized game of Thunderstone Quest. To do this simply call the class GameRandomizer using the quests you wish to draw from as parameters. These parameters should be entered as quest_x where "x" is the quest number.

from TSQ_Randomizer.pyTSQR import GameRandomizer

a = GameRandomizer("quest_1", "quest_9")
print(a.ranomized_decks)

To create a new randomized set of decks, perhaps because you weren't in love with the first ones you got, simply call the select_from_pool method and print the randomzied decks class variable again.

a.select_from_pool()
print(a.randomized_decks)

Updates


Version 0.0.5a - 2020/12/06

  • Added starter decks for standard, barricades solo, and barricades co-op
    • Added full text to all starter cards
  • Added full text to all the weapon cards

Version 0.0.4a - 2020/10/31

  • Lots of minor bug fixes
  • When GameRandomizer is invoked it now:
    • generates a pool of cards from all the quests called as args
      • quests args are called by quest number using the quest_1 format
    • generates a random game with the correct deck counts of each type
      • decks should never repeat but more testing will be needed to make sure that this is functioning 100% correctly
    • calling the GameRandomizer objects randomized_decks class variable will provide the random deck selections in a nested dictionary format.

Version 0.0.3a - 2020/10/25

  • Added a method for loading the cards.json into a dict
  • Added a method for creating a deck pool
    • Monsters and Dungeon Rooms will be added to the correct level

Version 0.0.2a - 2020/10/24

  • Added names and counts for cards in quest 9
  • Added names and counts for cards up through quest 8

Version 0.0.1a - 2020/10/12

  • Created initial outline of json
  • Added card names for quests 1-7 to the json

tsq_randomizer's People

Contributors

dmarienburg avatar

Stargazers

 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.