Code Monkey home page Code Monkey logo

dice's Introduction

Hi, I'm Nathan. ๐Ÿ‘‹

I'm a professional software engineer focused on React and TypeScript, with some experience in full-stack development using Node.js and relational databases (SQLite3 and PostgreSQL specifically).

dice's People

Contributors

walston avatar

Stargazers

 avatar

dice's Issues

TROLL syntax suport

TROLL a dice programming language

TROLL is a "language for specifying dice-roll mechanisms" {@see http://hjemmesider.diku.dk/~torbenm/Troll/}.

Leveraging the syntax, or a subset of it, would allow the dice roller to conditionally handle D&D Critical Hits or Kids on Bikes' Explosions

While you can download TROLL as a command-line binary, you need to have Moscow ML installed (:-1:) & run it in a terminal. Besides, we want to eventually VISUALIZE the dice rolls, we only want to borrow the syntax feature-set, and run the program in browser.

Challenges

The language design for TROLL to produce an executable and a dice-rolling web-app's needs differ.

  • Using a TROLL binary, you pass in a dice-roll mechanic and it will roll it for you.
  • Using the web-app, we would want to SHOW the dice-roll, and if needed pass the result back (to handle conditions/loops).
  • TROLL doesn't have syntax for Damage Type annotations
  • TROLL doesn't have annotations for dice-color/-id.

Duplicate rolls created onclick

Problem

Pressing the + button creates 2 new rolls.

Screenshot 2023-03-05 at 7 55 22 AM

It's possible this is due to react developer tools. I think that may be the case because the console.log inside rollFactory shows the source once from characterService.ts and another from react_devtools_backend.js.

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.