Comments (3)
I just took a look; this is an artifact of the questionable decision to store rep and food in the Game
class and not the Player
class. It's a legitimate bug but easily fixed by c/p'ing the print code from play_round
into play_game
. That rep value you're seeing is not rep, it's the total hunts that player participated in. The food value should be the same as in the last round, however; if it's not, I have no idea what's going on.
from hungergames.
That's not what I meant, I was a bit unclear: the rep value I'm seeing looked like it was a food value, while it was not actually the same as the food value. But it's the total hunts, okay, that explains.
from hungergames.
Just pushed a bugfix for this.
from hungergames.
Related Issues (20)
- `player_reputations` in `hunt_choices` in does not match official implementation HOT 15
- I need a better name for the Player base class HOT 1
- Improved printing HOT 4
- hunt_outcomes(food_earnings) does not match official requirements HOT 6
- Argument passed to hunt_outcomes() HOT 1
- Return error in Game.py?
- printing a player with no name raises ValueError
- Each player begins the game with 300(Pā1) units of food HOT 1
- Unnecessary divide by 2 HOT 2
- I should write some tests for this thing HOT 1
- hunt_outcomes() gives outcome of hunt with one's self HOT 2
- Request: Add a random bot HOT 5
- Alternator bot does not behave like sample code HOT 1
- Public Good award is incorrect. HOT 1
- Simulator doesn't work? HOT 2
- AttributeError: 'Player' object has no attribute 'name' HOT 3
- Call to hunt_outcomes includes payout of player with herself HOT 1
- Unexpected Issue HOT 2
- Engine does not test for invalid hunt_choices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hungergames.