Code Monkey home page Code Monkey logo

Comments (2)

Stektpotet avatar Stektpotet commented on September 24, 2024

Related systems:

  • Items
  • #8

Elements presented in a view:
Each element has a

  • Reference to Item (ScriptableObject), for now just referring to a dummy-ScriptableObject whose only attribute is name.
  • Current "cost" - the highest bid

from red-planet-rampage.

Stektpotet avatar Stektpotet commented on September 24, 2024

Concepts introduced

AuctionStage (ScriptableObject)

An auction stage is a scriptable object containing a set of constraints for a bidding round. In essence, it holds information on how the bidding round is conducted:

  • What is the duration of this auction round
  • What items are up for auction

With that, we can further control how auction rounds progress to some degree by building more complex variants of auction stages, e.g:

  • RandomisedAuctionStage: upon starting an auction round, numberOfItems items are selected at random (with/without replacement? - maybe both variants are good to offer from a design point of view... 🤔) from a pool of possible items contained in the AuctionStage instance.
  • WeightedRandomisedAuctionStage: same as above, but each item in the stage get a weight - representing how likely it is for the item to be in the auction round.
  • ConditionalAuctionStage: An auction stage that only takes place given some condition.

(These are all preliminary ideas for now, just noting down for potential future implementation)

BiddingRound (POD object, Auction state information)

A bidding round is instantiated from an auction stage. It contains:

  • The current items up for auction
  • The current bids placed
    • Tokens placed on each item
    • PlayerID of top bidder per item

AuctionDriver (MonoBehaviour)

The business logic for running the auction sequence. The auction driver is responsible for timing the auction stages, dispatching events throughout bidding, and distribute the items per active bidding round.

from red-planet-rampage.

Related Issues (20)

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.