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

  • Home
  • SEARCH
  • 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 have a small math problem I am trying to solve Given a number
Are there any programming languages designed to define the solution to a given problem
I'm trying to solve the following problem: Given an input of, say, 0000000000000000 0011111111110000
Problem: Given a list of strings, find the substring which, if subtracted from the
I am given a problem where I have been given N nodes in a
Here's the jist of the problem: Given a list of sets, such as: [
My problem is thus: I need a way to ensure only one given class
Given a linux kernel oops, how do you go about diagnosing the problem? In
Given a columns' index, how can you get an Excel column name? The problem
Given the following xml fragment: <Problems> <Problem> <File>file1</File> <Description>desc1</Description> </Problem> <Problem> <File>file1</File> <Description>desc2</Description> </Problem>

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.