Coder Social home page Coder Social logo

wordle-bis's Introduction

wordle

単純な対話プログラムの雛形

対話関数 String -> String を対話プログラムにするには、Prelude 関数 interact :: (String -> String) -> IO () を使う。

drive :: ([String] -> [String]) -> (String -> String) をつくる。

drive :: ([String] -> [String]) -> (String -> String)
drive f =  concat . f . lines

複数回の入力を処理して、複数回出力する関数は [String] -> [String] である。 responder :: String -> ([String] -> [String]) 関数で表現される。 responder の実態は、MachineState 上の状態遷移系である。

初期状態を生成する initial :: String -> [String] -> MachineState および eval :: MachineState -> [MachineState] の下請けである isFinal :: MachineState -> Boolstep :: MachineState -> MachineState を実装すればよい。

wordle-bis's People

Contributors

nobsun avatar nyama314 avatar

Watchers

 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.