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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different method for the ai #21

Open
LunarTides opened this issue Apr 11, 2023 · 2 comments
Open

Use a different method for the ai #21

LunarTides opened this issue Apr 11, 2023 · 2 comments
Assignees
Labels
impact: high High impact priority: medium Medium priority scope: game The issue is related to the game itself time: very long Estimated time: 9+ hours. type: enhancement New feature or request
Milestone

Comments

@LunarTides
Copy link
Owner

Currently the ai uses a kind of “sentiment analysis” and looking at some numbers like stats and amount of keywords to determine “good” cards. This is basically just guessing but was a simple way of adding a “smart” ai.

Another solution could be to create a sandbox where it simulates what happens after it plays every card in it’s hand and chooses the one with the best outcome. One way to do this without messing with the game state could be to create a perfect copy of the game and making the move there, sandboxing the different cards. Doing it this way should make the ai make better decisions since the ai can see the direct outcome of a card before it plays it instead of just guessing and having to react to the outcome when it’s too late to change it’s mind. The ai could also choose every possible target when evaluating a card, which would make the ai choose better targets as well. This should be an “easy” solution that should directly make the ai play better. The old system should be kept so you can switch between them in the ai config.
Maybe also add a depth to the ai so it can look into the future. The ai can't look at the player's cards so the future is pretty uncertain so the future cards get less valuable the more into the future it is.

@LunarTides LunarTides added type: enhancement New feature or request priority: medium Medium priority time: very long Estimated time: 9+ hours. labels Apr 11, 2023
@IsakSkole123
Copy link
Contributor

I was not able to add this. It would require too many breaking changes and too much time.

@IsakSkole123 IsakSkole123 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2023
@IsakSkole123 IsakSkole123 added the wontfix This will not be worked on label Apr 14, 2023
@IsakSkole123
Copy link
Contributor

Second attempt. I have gotten further. First pass is already commited.

@IsakSkole123 IsakSkole123 reopened this Jun 3, 2023
@IsakSkole123 IsakSkole123 removed the wontfix This will not be worked on label Jun 3, 2023
@IsakSkole123 IsakSkole123 added this to the 1.5 milestone Jun 3, 2023
This was referenced Jun 3, 2023
@IsakSkole123 IsakSkole123 modified the milestones: 1.5, 1.6 Jun 4, 2023
@LunarTides LunarTides pinned this issue Jun 23, 2023
@LunarTides LunarTides self-assigned this Jun 23, 2023
@LunarTides LunarTides modified the milestones: 1.6, 1.7, 1.8 Jun 28, 2023
@LunarTides LunarTides added the impact: high High impact label Sep 10, 2023
@LunarTides LunarTides added the scope: game The issue is related to the game itself label Oct 9, 2023
@LunarTides LunarTides unpinned this issue Jul 29, 2024
@LunarTides LunarTides pinned this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact: high High impact priority: medium Medium priority scope: game The issue is related to the game itself time: very long Estimated time: 9+ hours. type: enhancement New feature or request
Projects
None yet
2 participants