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

Dealing with random function #1

Open
ironmaniiith opened this issue Mar 23, 2016 · 0 comments
Open

Dealing with random function #1

ironmaniiith opened this issue Mar 23, 2016 · 0 comments

Comments

@ironmaniiith
Copy link
Owner

Many a times, the game reaches to a stage where it is not possible to logically guess where should the next click be, the current version of the bot deals with it by clicking at any of the unopened block randomly. The target is to make this random click either a smart random or a probable logical or a hybrid combination of both.


smart random :

A random move should be taken in such a way that it does not open a corner box, which may lead to very less information and also keeping in mind the total number of mines, we should be able to calculate a possible configuration of the board, which can assimilate the given number of mines (or can generate the complete current board configuration) and then decides a place where that smart random move should occur. It's suggested to apply AI for this.

probable logical :

A move which calculates probability of all the blocks having a mine under it, and hence returns a probable move which may not explode the block containing mine.

It would be best if we can come up with a hybrid solution of the above two along with a helper code which will suggest which move to take among the above two strategies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant