• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Axelrod-Python / axelrod-dojo / 119 / 1
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 14 May 2018 08:44AM UTC
Files 11
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2018 08:41AM UTC coverage: 98.358% (+0.07%) from 98.288%
119.1

push

travis-ci

drvinceknight
Implement genetic algorithm for gambler (#48)

* Implement GA for Gambler archetype

* tweak mutation

* add tests for gambler's ga methods

* fix mutation and adjust tests

* add check to keep genes in bounds 0, 1

* add integration test

* Implement GA for Gambler archetype

* tweak mutation

* add tests for gambler's ga methods

* fix mutation and adjust tests

* add check to keep genes in bounds 0, 1

* add integration test

* tweak old tests

* test that player instance is created correctly

* test instance with vector

Tests that an instance of the Gambler is created correctly
when a vector is passed. That's when gambler works with
pso

* fix test on pso

This this the final tweak. Now the tests is correct because we
playing against 5 cooperators and the payoff we expect is around
5.

This was breaking previously because the player instance was not
created properly.

* typo

* fix mutation based on pr discussion.

Change the mutation to be:

- each gene has the probability to change to a number in [0, 1]

Remove the test about the genes beging between the bounds.

* fix style suggestion

* address minor comments on pr

* fix crossover as suggested on pr

* fix mutation as suggested on pr

* add line at the end of file + pep8

599 of 609 relevant lines covered (98.36%)

0.98 hits per line

Source Files on job 119.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 105
  • Travis Job 119.1
  • 916e666c on github
  • Prev Job for on master (#109.1)
  • Next Job for on master (#128.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc