Code Monkey home page Code Monkey logo

pridil's People

Contributors

paulgriffiths avatar

Watchers

 avatar  avatar

pridil's Issues

Assert macros in cmdline.cpp

Replace assert() macros in cmdline.cpp with raised exceptions, as assert() should only be used for things which should always be true, which is not the case, here.

Reorganize genes code

  • Give each gene its own *.h and *.cpp file
  • Add overall genes.h file to include all the others
  • Include overall genes.h file within dna.h

Implement creature death

Creatures should die when resources reach zero. Remove each dead creature from main creatures list, and create a dead creatures list to move them into (or simply maintain statistics, and delete them).

DNA/memory interaction

Refactor genetic strategies by calling Memory functions such as prev_memory(opponent_id, history=1) rather than passing the memories list. This will make the code more explicit and reduce coupling. 'history' parameter could be set to 2, for instance, to receive not the last memory, but the second to last. Own moves, or opponents moves, could be returned.

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.