need help for programming
I need help in this homework CMSC 401 Spring 2013 Program 5Connect 4 Due: Monday, April 22 noon Program name: C4.Document Preview:CMSC 401 Spring 2013 Program 5Connect 4 Due: Monday, April 22 noon Program name: C4.javaThe game of Connect Four is played on a 6 rows by 7 columns vertical board. Checkers are dropped into any column and the checker always falls to the lowest spot available in that column. The play alternates between red and black until one player gets four checkers in a row either horizontally, vertically or diagonally. A sample game is given on the next page.Your assignment is to write a program which plays the gameuser against computer. Assume that the user will play first and use the red checkers. Your program should generate a decision tree which searches to a level specified by the user when the program is initiated (query the user). You are to decide on your own evaluation scheme.The program must also have the following rule change: the board should be viewed as a sphere. This means that the left edge is connected to the right edge. The top is also connected to the bottom. Thus, the following board has three possible winning combinations for Red (all represented in bold)R R B R R R R R B R R R B B B B B B R B R R B B B B R B B R The program should be called C4.javaAlso submit a text file or a Word file called C4 describing your evaluation scheme. Attachments: P5.doc
Is this the question you were looking for? If so, place your order here to get started!