Git Product home page Git Product logo

inanimate's Introduction

Inanimate

Functional, Monadic Abstractions for the Minecraft World

Synopsis

Disclaimer: I am not good at Haskell, I just borrow its idea

Currently in the stage of setting up.

The basic idea is that if in the real world, we have functions such as doHomework :: Homework -> IO and all the homework from the week homeworks :: List. It would be wonderful if we could just mapM doHomework homeworks to finish all the homework of the week instead of doHomework englishHomework -- and so on for other homeworks.

The good news ... is that this is entirely doable in Minecraft, as a mod to the miserable world all Steves live in.

Synopsis: Type System

-- craft represents Minecraft's crafting system
-- it takes 9 nullable items and returns a Future Item
-- where Future is a monad similar to Haskell's IO
craft :: <Item?, 9> -> Future Item
-- liftB represents a function that takes a function and makes it a "block"
liftB :: (a -> b) -> Block (a -> b)

-- for example, if you
liftB craft

-- then you should get the equivalent of a, guess what, crafting table
-- and just place the result in the world

-- how convenient

inanimate's People

Contributors

runeblaze avatar

Watchers

James Cloos avatar  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.