Question
Requirement: 1. The goal is to find eight solution numbers also called killer numbers. 2. These are discovered with logic and require no guessing. 3.
Requirement:
1. The goal is to find eight solution numbers also called killer numbers.
2. These are discovered with logic and require no guessing.
3. There is exactly one of each number 1 to 8 in the grid.
4. Starting with the given solution number, rule out numbers in consecutive locations whose sum would match the "Lesser than or Equal to the solution number/killer number" RULE. 5. As you eliminate numbers, other eliminations will become logically deductible.
Strategies: 1. A random 6 by 6 fully filled up grids of numbers from 1 to 8 is displayed at the game start. At every run of the code, the random configuration can be programmed to set up.
2. Player 1 chooses a number known as the killer number. If in a game turn , the player is the user, dynamically get this input. If in a game turn , the player is the computer AI, it can set this input heuristically or randomly.
3. Player 2 finds adjacent number combinations called killer combinations that match the given RULE w.r.t to the current killer number by removing all these numbers. In one turn the player 2 is given a maximum of three combinations to try. One combination can consist of any no.of.adjacent numbered cells. If the player 2 is the user, dynamically get the indices(or coordinates) in the grid to choose from .
4. The number of such matching combinations chosen and removed by player 2 adds up to player 2s points.
5. Steps 2 to 3 will be repeated with player 2 choosing the number and player 1 finding the killer combinations to gain points.
6. The game ends in either of the below scenarios: a. When there is only one number left in each row or column. b. When a player has no more matching combinations to choose from in its turn of play.
7. The cumulative points gained by the players decides the winner. Sample Rule & Combination selection: For example, number 8 is chosen by player X (Computer or human) in the grid given below and if the rule correspond to Equal to the solution number/killer number" RULE, player Y (Computer or human) may choose below combinations to delete:
Sample Rule & Combination selection: For example, number 8 is chosen by player X (Computer or human) in the grid given below and if the rule correspond to Equal to the solution number/killer number" RULE, player Y (Computer or human) may choose below combinations to delete:
The number combinations marked in red rectangles sum up to 8 and can be removed adding two points (two killer combinations) to player Y.
a. You are free to choose your own additional static evaluation function design if any. Justify your choice of static evaluation value design and explain with a sample game state in this case. Do not use any machine learning model for the evaluation function.
b. Similar to the virtual lab example, one of the player must be a human ie., it must get dynamic inputs from us. The other player must be simulated using the program. c. Implement Python code for the design under part a, using Minimax Algorithm.
I need working python ncode i have two refrences here:
a) https://www.chegg.com/homework-help/questions-and-answers/question-1-game-problem-statement-simulate-working-new-kudoku-puzzle-per-following-customi-q108703716
b) https://www.chegg.com/homework-help/questions-and-answers/simulate-working-new-kudoku-puzzle-per-following-customized-requirement-strategies-working-q108420962
Please help me the second one has python code but it is not aligned.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started