Comments (2)
I think this is a great idea. By far the most time consuming aspect of writing a strategy is testing it, and this is a really clever way to do that testing.
I think there might be a few more pieces of information that could impact the strategy:
- which number the point is on
- whether there is a new shooter (maybe?)
The idea you mention for development testing might also be useful for an end user. I'm picturing that this would add only the unique scenarios for a given strategy. So they could either:
- specify a few scenarios to test, then have the function check them explicitly
- let the strategy run, function adds some rows to csv, then the user can manually check for accuracy
I think this would lead to 3 functions, create_strategy_test_file()
, run_strategy_test_file()
, and check_strategy_test_file()
, where check does what you proposed in run, and run takes an argument for the number of rolls to consider.
from crapssim.
I think there might be a few more pieces of information that could impact the strategy:
- which number the point is on
- whether there is a new shooter (maybe?)
For the point I pictured it either being the point number or "off" instead of splitting out the status and number. I think new shooter would be good, but I might make it (and point) optional since 95% of the time new shooter won't matter.
The idea you mention for development testing might also be useful for an end user. I'm picturing that this would add only the >unique scenarios for a given strategy. So they could either:
specify a few scenarios to test, then have the function check them explicitly
let the strategy run, function adds some rows to csv, then the user can manually check for accuracy
I like this idea a lot. I'm going to play around with it and might end up combining the two creation into one method with the option.
from crapssim.
Related Issues (18)
- Table can run forever if player's bankroll is greater than zero, but less than bet unit. HOT 1
- What are craps-test.py and run_simulations.py in the Python directory for? HOT 5
- Place bets are automatically turned off when point is Off HOT 2
- Table payouts should be improved for consistency HOT 9
- Add methods for running simulations HOT 2
- Add a Strategy object type HOT 5
- Leave Up Winning Bets HOT 1
- Should there be a PassLine bet placed initially after a new shooter for the Place682Come Strategy? HOT 5
- Add fixed roll files to package
- place68 question HOT 2
- place682come possible bug HOT 3
- Do Fire bets normally pay out each time that they are hit, or only when the shooter concluded? HOT 2
- Random Module HOT 3
- Dont Come HOT 1
- List of bets to implement HOT 1
- Consider adding bet aliases
- Add snapshot testing
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 crapssim.