Comments (6)
You're right. It maintains the game state correctly but it's sending the player the wrong value. Here's how I handle it in the game:
player[1] += food-4*hunts-2*(self.P-1)+bonus
That expression on the right is what I should be feeding to hunt_outcomes
. I'll have to review jknielsen's changes before I decide what to do about this.
from hungergames.
I just ran into this issue as I just started using hunt_outcomes in my algorithm. Hunt outcomes is supposed to be an array for the outcome of each matchup, not a single number. I am working on this now.
from hungergames.
oh, drat, thanks. Actually don't worry about it, I'm literally working on it right this second and probably going to push changes within the hour.
from hungergames.
Oh oops, already committed
This is what I ended up doing.. had to rewrite payout to calculate win/loss isntead of just earnings
from hungergames.
haha ok. I'll probably just merge that instead then.
from hungergames.
Merged and pushed the above fix.
from hungergames.
Related Issues (20)
- Printed reputation HOT 3
- `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
- 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.