Skip to content

Conversation

@Suraj1127
Copy link
Contributor

Made AI stronger by implementing and modifying the following things.

  • Integrated closed spaces(ghost goats) into the evaluation function.
  • Set the minimax initial variable(value) to the different value than the value returned when win condition is reached. It was creating an error of not making any move when no move is found better.

@Suraj1127
Copy link
Contributor Author

  • Previously, I had omitted movable tigers parameter from evaluation function but AI was defeated when I played with trapping tigers strategy. Then, I integrated it into the evaluation function again.
  • Problem which I thought was created by that movable tiger thing was actually because of the initial value(value) thing. So, again I included and the AI became better.


# find the minimum attainable value for the minimizer
if not is_max:
value = self.INF
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why replace INF?

@Suraj1127
Copy link
Contributor Author

Suraj1127 commented Sep 25, 2018 via email

@code-geek code-geek merged commit c5c8f1c into code-geek:master Sep 25, 2018
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.

2 participants