-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to TypeScript and multiple improvements #48
Open
Alan-Hinton
wants to merge
17
commits into
jankeromnes:master
Choose a base branch
from
Alan-Hinton:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create model to represent the responses from the server, don't include any references to the server code Make the server response immutable (remove the annotate methods and find related objects on demand) Remove the use of exec for start game to make the code simpler Refactor the card parsing code into functions Remove duplication in the standard project parsing code Add some setup details to the README
Use types from the underlying common folder Sort out the build
Reduce logging
Standard projects are represented as effects so this should evaluate them correctly too
Also add more detailed logging
Handle more events More logging Beat the existing score
Fix bugs relating to precedence of `===` operator Handle initial research like any other move
This doesn't result in more wins in solo mode, but it does prevent very bad scores Also use heat as a last resort when playing Helion, this also fixes a bug with Local Heat Trapping Handle the Land Claim card better
Log the score for each available option, don't log multiple times in a turn Improve evaluation for microbe event cards Don't buy cards with unmet requirements Sell any cards that become negative in value If the total cost of the cards we have in hand is more than the cash we have, only buy cards that are better than any card we might play this turn Improve evaluation of cards with 'or' And a few little bugs
Don't fund awards by mistake Don't steal resources from myself, don't play stealing cards if there isn't another player with enough resources/production to steal from Don't play event cards that we don't have the resource production to play the event Handle events that create oceans and have resource costs other that microbes
Create a second bot that is better at estimating when the game will end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @jankeromnes. I saw your project and thought it was really interesting. I see you haven't done anything with it for ages but I thought I would show you what I have done in case you still have interest. I have taken the great initial work you did and improved it it multiple ways:
The bot can now win in solo mode about 20% of the time. It isn't very strong in multi player, but isn't totally idiotic either.
I intend to keep working on this but it would be interesting to hear your thoughts.