Make the AI play a bit better in different situations #626
Labels
discussion
Discussion requested or required before resolving.
feature request
New feature or enhancement of existing feature.
Is your feature request related to a problem? Please describe.
We discussed in the meeting today that the AI does not play Instruction cards well once it's method is full. There are also other situations where maybe the AI does not play the best or could play a little worse to allow for different difficulty levels.
Describe the solution you'd like
Come up with some ideas for different Card or Turn strategies that can be used to create
Action
modules to plug into the AI and make it more diverse.The infrastructure is already there for this, but right now for the most part the
PlayBestCard
action is being used exclusively. It does very specific things and may not be perfectly tailored to the current game mode. This module could be sub-classed to override functionality to create different difficulty levels. Or we could start creating more individual Card and Strategy modules that will look at the game state and make better or worse decisions.The beginner mode in 2.5 has already got a
PlayRandomCard
action that shuffles it's hand instead of sorting it by priorities so that its play is not as good and this will give beginners more time to play without the AI winning quickly.Ideas
PlayRandomCard
action we could introduce some modules with some differing levels of randomness to keep the AI from always making the "best" decision. Right now if it plays a repeat card or a virus card it will always play it on the stack with the highest score possible. We could setup something to make it pick the lowest, or favour higher ones, but not guarantee it.Any other ideas about how the AI does or could play should be shared here for our records and we can think about making some changes in the future.
The text was updated successfully, but these errors were encountered: