mtgred / netrunner

http://www.jinteki.net
Other
900 stars 394 forks source link

Feature Request: Psi game "Random" button... #1486

Closed queueseven closed 6 years ago

queueseven commented 8 years ago

...to randomly spend 0,1 or 2 $

zaroth commented 8 years ago

I find such a button a bit restricting, since not very often you want to put equal odds 33% on every chance. What I think would be more flexible is a local (just JS, no server communication) die roll, with being able to select the number of die sides (e.g. d3, d6 and d10) and let them make decisions themselves based on the roll. This way players could mimic real life random decision making.

queueseven commented 8 years ago

Related: #1195

lostie commented 8 years ago

Would integrating something like this in the client do the job: https://github.com/noviny/react-dice ?

There's another nice one http://vicentemundim.github.io/dice-roller/examples.html , but this one seems to use angular, which is not using in this app.

queueseven commented 8 years ago

A little overkill to use a library for generating a random number... ;-)

lostie commented 8 years ago

Well, the idea was more to have an actually dice rolling on the screen, but if it's ok to just generate a random number, yeah, no library needed

queueseven commented 8 years ago

Well, if you want to take the time to implement this, feel free to make a pull request. I just don't know if such a dice animation would fit into the sites appearance, but if you could make it work... ;-)