Code Monkey home page Code Monkey logo

elmdawars's Introduction

ElmdaWars

A (work-in-progress) port of LambdaWars to Elm.

LambdaWars are a Haskell clone of RoboCode.

How to run

elm-reactor

... then visit http://localhost:8000/Main.elm.

TODO

A lot of things are missing, check the Issues list and feel free to contribute.

How to write an AI

The type of programs that control tanks is Automaton DashBoard Command. DashBoard is a structure that contains a robot tank's view of the world. Command is an instruction the AI wants its controlled tank to execute in a given time step.

Stateless AI

Write a step function of type DashBoard -> Command; create an Automaton from it by passing this function as an input to the 'pure' function.

Stateful AI

Write a step function of type DashBoard -> STATETYPE -> (Command,STATETYPE); which returns the command to execute and the next state given the input DashBoard and state in the current time step. Create an Automaton from this function using the function hiddenState: hiddenState initial_state your_step_function.

elmdawars's People

Contributors

tomtau avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gfrmin

elmdawars's Issues

Syntax Problem with elm version 0.17.1

I ran into something unexpected when parsing your code!

1| module Main where
^
I am looking for one of the following things:

something like `exposing (..)` which replaced `where` in 0.17
whitespace

when I ran it, there's syntax problem occurs, probably it's because of the elm version problem.

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.