Giter Club home page Giter Club logo

ants's People

Contributors

aochagavia avatar wouter-swierstra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

carlostome

ants's Issues

commandline options

I'm currently working on command line options

--red <red ant ai file> --black <black ant ai file> --world <world map file> [OPTIONS]

Options
--hres -h FLOAT   horizontal resolution
--vres -v FLOAT   vertical resolution

I want to add a flag for simulation --simulate -s that bypasses the graphics alltogether, but does run the step function until the end and keeps track of the score

Score computation and display

Make the game state carry score for both parties and add a scoreboard to the world.
Maybe also add a generation counter?

Combat

Add the combat system so that the ants can fight

Interactivity

Add controls to control the execution speed of the program. It is nice to see slow animations for debugging, but also fast for playback. Maybe it's also useful to have no animation at all if all you're interested in is the results (bypass the graphics alltogether)

Verify WorldParser

The world is parsed using square coordinates, these may not correctly map to hexagonal coordinates.

Graphics

integrate graphics for all the objects in the world, that is

  • Rocks
  • Ants
  • Food
  • Ants with food? (go nuts!)
  • Colors
  • Or even decoration if you so choose

Step function

Step function that runs one timestep, in one of these steps the position of the ants on the board has to be updated (world update) and the ant records have to be updated (ant update)

The type of the function would be something like

step :: Gamestate -> Gamestate

where Gamestate is a record that has the world map, the programs for both ant colonies and two sets for the ant colonies.

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.