discord-tictactoe icon indicating copy to clipboard operation
discord-tictactoe copied to clipboard

AI Difficulty Options

Open OakLoaf opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. It is rather annoying that it is next to impossible to win against the AI.

Describe the solution you'd like Some difficulty levels for playing against the AI (eg. easy=completely random, medium=random choice between random and calculated placement, hard=fully calculated placement) You could make my example more complicated and change it to a number (eg. if 0 then 0% of moves are calculated, if 6 then 60% (chance) of moves are calculated, up to 10 where all moves are calculated)

OakLoaf avatar Sep 10 '22 19:09 OakLoaf

Hello! Thank you for the idea. Its a duplicate of issue #36 I think. This is a long-standing request of addition to the module but it is also one of the most complex to do.

utarwyn avatar Sep 11 '22 11:09 utarwyn

Hello! Thank you for the idea. Its a duplicate of issue #36 I think. This is a long-standing request of addition to the module but it is also one of the most complex to do.

I would disagree! I explained really quite easy ways of doing this, you can simply implement whether AI chooses the next move or whether the next move is randomly generated!

EDIT: Alternatively you could make the AI consider the options and have a random chance of choosing the 2nd/3rd best option

OakLoaf avatar Sep 11 '22 16:09 OakLoaf

This feature has been added to the module! Check this comment to have more info about the configuration.

utarwyn avatar Jan 19 '23 19:01 utarwyn