wouter-swierstra / ants Goto Github PK
View Code? Open in Web Editor NEWAFP 2017 Ants exercise
AFP 2017 Ants exercise
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
Make the game state carry score for both parties and add a scoreboard to the world.
Maybe also add a generation counter?
Add the combat system so that the ants can fight
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)
The world is parsed using square coordinates, these may not correctly map to hexagonal coordinates.
integrate graphics for all the objects in the world, that is
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.