Python Checkers game Rules and Game Checkers is a simple game. It is played on an 8×8 square board

Python Checkers game Rules and Game Checkers is a simple game. It is played on an 8×8 square board. By convention, the squares alternate between a dark and light color with the bottom left corner dark. Checkers is played by two competitors also designated as ‘light’ and ‘dark’ (traditionally in tournaments these are red and white.) Also, by convention, the ‘light’ player views the board from the “bottom” and the ‘dark’ player views from the ‘top of the board. The columns of the checkerboard are called files and numbered left to right as 1 through 8. Likewise, the rows of a checkerboard are called ranks and are numbers from bottom to top as 1 through 8. Thus the closest square on the left of the light player is position (1,1) and the closest square on the left of the right player is position (8,8) The row closest to a play is their “King Row.” Pieces are referred to as Singles or Kings. Starting Position Each play begins with twelve Single pieces placed on the dark squares closest to them. So the Dark player’s pieces will be in ranks 6 through 8 and the Light pieces will be in ranks 1 through 3. Dark starts first. Moves • Each player may move one piece per turn. • A Single piece may move on the diagonal, one position forward if that position is unoccupied. • A King piece may move on the diagonal, one position in any direction if that position is unoccupied. • When a Single reaches their opponent’s King Row that piece is elevated to a King. • A Jump may be executed if the position is occupied by an opponent’s piece and space beyond, on the same diagonal is unoccupied. The opponent’s piece is then removed from play. • A jump can continue as long as the pattern of the opponent and open position continues in an allowed diagonal. (Singles can switch between left-forward and right-forward directions. Kings can switch between any of the four diagonals.) • Once a Move or Jump is executing the next move belongs to the other player • If a piece can execute a Jump that is the required move. • Play continues until one player has no pieces or is unable to move any pieces. Details I have provided the summary of the rules of the game This is not an exercise in determining strategy or teaching an AI to play Checkers. We are just practicing Random Walks in a fun example! As you got through the steps below you may find it useful to redefine your work done in previous steps. In that case, go ahead and copy the cell down and make your changes. Use markdown to indicate each step. It is important to see the evolution of your game development. 1) Create classes to represent the necessary objects for gameplay. This will include, at least, the game board, the two types of pieces, and the two sides. You will need to determine the best way to represent the relationship between them. 2) Set up one side of the board. Print the status of the board. 3) Execute 10 turns. On each turn randomly select a piece that can move (see rules above) and move it. If a piece reaches the opposite King Row elevate it from a Single to a King. Print the status of the board. 4) Reset the board and set up both sides. Execute 10 turns, same as above. This time you have to have your Jump method working. Print the status of the board Bonus) Write a simulation to determine whether it is advantageous to go first when you don’t have a strategy You will want to make sure you are not trying the same piece more than once a turn, or testing moving the same direction more than once for a piece. That is called selection without replacement. A handy way to do this is to use random.shuffle to randomize your list and then iterate through it until you have either had success or exhausted your possibilities

Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us

Essay Hope