Code Monkey home page Code Monkey logo

Comments (3)

k1l0b1t avatar k1l0b1t commented on May 27, 2024 1

I did not actualy duplicate anything (sadly). Being able to do this with a knife would be nice though

from terminal.land.

newbold avatar newbold commented on May 27, 2024

Related issue: you can try to take/drop 0 of something, and attempt to work with negative values as well. Not good. 😄

from terminal.land.

newbold avatar newbold commented on May 27, 2024

All fixed!

> DROP 0 PEARS

That would be pointless.

> DROP 0.5 PEARS

That would be impractical.

> DROP -1 PEARS

That would be impossible.

Fractional object support could be a thing at some point, but I'd want to do it right. I'm thinking of an object attribute that defines the unit quantity appropriate for the object, as well as the new object that is produced when the parent object is divided. Some examples:

Starting object: banana
Divided object: slice of banana
Supported unit quantity: 10 (I guess you could slice it more thinly, but we'd have to pick something)

Starting object: chocolate bar
Divided object: piece of chocolate
Supported unit quantity: 8

Starting object: sugar cube
Divided object: granule of sugar
Supported unit quantity: 1,000 (how many sugar granules are in a sugar cube?)

Lots more thought would have to go into this, of course, but this is some early thinking on one possible approach.

from terminal.land.

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.