Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start refactoring Ruby noodle #372

Closed
wants to merge 16 commits into from
Closed

Start refactoring Ruby noodle #372

wants to merge 16 commits into from

Conversation

djdefi
Copy link
Member

@djdefi djdefi commented Apr 20, 2023

馃崫 :fishsticks:

@djdefi djdefi requested a review from bevns as a code owner April 20, 2023 15:59
@github-actions
Copy link
Contributor

馃憢 Thanks for opening a pull request!

If you are new, please check out the deployment process to understand how to deploy this pull request. A trimmed down summary will be listed below:

  1. 馃憖 Observe the CI and ensure it is passing

  2. 鉁旓笍 Obtain an approval/review on this pull request

  3. 馃敀 Optionally claim the deployment lock with .lock --reason <text> if your change is more complex

  4. 馃殌 Branch deploy your pull request to production

    Comment .deploy on this pull request to trigger a deploy. If anything goes wrong, rollback with .deploy main

  5. 馃帀 If you branch deployment completes successfully, merge your pull request!

@github-actions
Copy link
Contributor

github-actions bot commented Apr 20, 2023

馃 馃悕:

Simulating battlesnake with the following settings:
  mode: wrapped
  runs: 10
  map: hz_islands_bridges
  height: 11
  width: 11
  verbose: 
  seed: 16448
Run [1/10] winner: pathy
Run [2/10] winner: pathy
Run [3/10] winner: pathy
Run [4/10] winner: pathy
Run [5/10] winner: pathy
Run [6/10] winner: pathy
Run [7/10] winner: pathy
Run [8/10] winner: pathy
Run [9/10] winner: pathy
Run [10/10] winner: pathy
     10 pathy

@djdefi
Copy link
Member Author

djdefi commented Nov 16, 2023

This pull request to the snakes project includes several changes that improve the functionality of the game, including generating configurations, calculating turn numbers, and outputting the top configuration to config.yml. The most important changes include adding a new config_suggest2.rb file to handle configuration generation, and adding a config.yml file with weights for game board features to determine the best move.

Main functionality changes:

  • snakes/ruby/djdefi/app/config_suggest2.rb: Added functionality to the config_suggest2.rb file, including loading a model_data.json file, generating configurations, calculating turn numbers, and outputting the top configuration to config.yml.
  • snakes/ruby/djdefi/config.yml: Added config.yml file with weights for game board features to determine the best move.
  • snakes/ruby/djdefi/app/config_suggest.rb: Added code to generate a new configuration file for the snake game using a genetic algorithm, which reads in a model_data.json file, creates a random configuration, runs the game, and generates a new generation of configurations based on performance. The top performing configuration is output to a config.yml file. (snakes/ruby/djdefi/app/config_suggest.rbR1-R155, snakes/ruby/djdefi/app/config_suggest.rb)

Logging improvements:

@djdefi djdefi closed this Nov 16, 2023
@djdefi djdefi deleted the djdefi-opto branch November 16, 2023 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant