The game Connect-4 is played on a board that has seven columns. There are six spaces on each column. The board is initially empty. Two players take turns dropping one piece (black or grey in the diagram below, but “X” or O” in our game) in a column. The piece falls into the lowest unoccupied row. A player cannot move in a column if the top-most row of that column already has a piece in it. The first player to get four of their counters in a line (horizontally, vertically, or diagonally) is the winner. You have been provided with two files for this problem: minimax.lisp, which contains lisp code for the minimax algorithm, and fourinarow.lisp, which contains a working LISP implementation of the Connect-4 game. As the Connect-4 implementation currently stands, you should have absolutely no problem beating the program. Try it: [1]> (load 'minimax) ;; Loading file C:\CSE2AIF\minimax.lisp ... ;; Loaded file C:\CSE2AIF\minimax.lisp T [3]> (load fourinarow) ;; Loading file C:\CSE2AIF\fourinarow.lisp ... ;; Loaded file C:\CSE2AIF\fourinarow.lisp T [3]> (play) The program plays poorly because it has a poor-quality heuristic. The function static, which evaluates a position from the point of view of a particular player, is currently defined as follows: (defun static (board player) 0) This means that each board configuration receives exactly the same evaluation; i.e., 0. Your task for this question is to develop and implement a good heuristic for the Connect-4 game. The only LISP code that you are required to write is a LISP function static, which accepts a board and player as input arguments, and returns an evaluation of the board state from the point of view of player. You can, of course, write as many helper functions as you like. To assist you, the code you have been supplied with contains a parameter *all-c4-lines* which is a list of all of the 69 possible ways to win in Connect-4. Each element of this list is a list of length four, such as ((1 0) (2 1) (3 2) (4 3)) Each element of this list is a sublist in which the first number represents column position and the second number represents row position. For example, the list above indicates that there is a line of length four that includes a piece at the 1st row of the 2nd column, the 2nd row of the 3rd column, the 3rd row of the 4th column, and the 4th row of the 5th column. (Row and Column indexing starts at 0)
Hi! i always have hard time to finish my assignment. But thanks for your help. I can complete my assignment till due date. I feel really thankful to u. cuz even though its kinda hard and picky assignment, you did your best!
MyAssignmenthelp.com boasts a team of talented and highly skilled coursework writers based in UK who assist students in the best possible manner. Students, who need coursework help, find our services fulfilling and effective because we provide high quality help at affordable price. So, students who often search can someone do my coursework cheap or can experts Write my coursework for cheap get perfect solution at MyAssignmenthelp.com. They pay for best coursework and get it from us.
Just share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
Great work by team i got good marks in every assessment i got credit in every subject
Australia
Best service forever i was try lot of websites but my friend recommended this one then i got positive reviews and positive comments from the tutors
Australia
The tutor was very helpful and got the job done quite quickly considering how little time they had to do the assessment. The critical reflections were outstanding and well written! Thank you very much for the hard work!
Australia
They are fast in revising work and making sure its done properly. great CSS, in addition work is promptly done
Australia