Code Monkey home page Code Monkey logo

ants-web-viewer's People

Contributors

colinschoen avatar msohcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ants-web-viewer's Issues

Exit Button

Create javascript event binding to exit button to trigger AJAX post request.

Only Draw New Ants

Unnecessary to redraw ants on every update. Only need to draw ants when there is a new ant spawned.

Bee skips first place upon entering a tunnel

On the easy level, the first bee enters a tunnel at time 3. However, the browser GUI doesn't show this until time 4, and the bee has already skipped a space.

The reason for this is probably because on line 170, when iterating over colony.places.items(), the hive isn't included in places. The places attribute of colony should only return all the places on the NxM board that players are able to put ants in. The fix should probably just need to include the hive in the for loop.

Dead Ants

Dead ants are not dying reliably.

Ant Table

Ant images should be backgrounds not <img> tags.

Socket Binding Issue

After terminating the web server it still sometimes retains it binding to port 8000 a few seconds after causing the following error if a user tries to spawn another instance:

OSError: [Errno 48] Address already in use

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.