Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3606532
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:15:37+00:00 2026-05-18T21:15:37+00:00

i Am given a problem to solve the Bubble breaker puzzle Game. there are

  • 0

i Am given a problem to solve the Bubble breaker puzzle Game.
there are two parts of the game.
1.User player
2.Cpu Player.
i wrote the code for the User player but have no idea how the Cpu player will play in such a way so that the cpu player can get maximum score and completly clear the board.
if someone can help me with this??

when the game starts its load a file containg integer ranging b/w 1 and 3.
1 for red colour
2 for green
3 for yellow

1111111111
2323333132
1131123222
2222222113
1111111111
1111111111
1111111111
1111111111

adjacent colours shold be delete.

a game like this.
plz help me out with the cpu player by giving me hints to get the best score.
thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:15:37+00:00Added an answer on May 18, 2026 at 9:15 pm

    If you just need a “good” score instead of the perfect score, you can use Monte Carlo techniques. The basic idea is:

    Randomly select a position to click on. Do that until there’s no possibility to remove any balls. Remember the score and the points where you clicked on.

    Do this 10000 times, and you will be fine against most humans.

    If you still need to get a better AI player you can take the maximum score you gained above as a lower limit. You would then estimate the maximum points that can be reached from a certain position, and if that number is less that the “best random score”, you can cancel that particular try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to solve a problem which is something like this: I'm given n
I'm trying to solve this problem : http://uva.onlinejudge.org/external/7/732.html . For the given example, they
I want to solve the following optimization problem: Non-Latex: Given x and mu, find
Problem Given the following two tables, I'd like to select all Ids for Posts
I need a little help with my new assignment. Problem: Given Two Linked List
I'm trying to solve the following problem: Given an input of, say, 0000000000000000 0011111111110000
I have to solve the following optimization problem: Given a set of elements (E1,E2,E3,E4,E5,E6)
I'm trying to solve this particular problem using c++. Problem: Given a set of
Dear visitors stackoverflow! I can not solve a simple problem: Body given the background
I'm looking for a relatively efficient function to solve the following problem: Given records

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.