Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Activity #3: Chessboard Moves-Team Activity The purpose of this activity is to get you used to using lists of lists, in a 2-D matrix-like format.

image text in transcribed
Activity #3: Chessboard Moves-Team Activity The purpose of this activity is to get you used to using lists of lists, in a 2-D matrix-like format. Please name this file Lab6_Act2.py for submission to eCampus. Write a program that sets up a chess board with chess pieces, and lets people make moves (of one at a time) on the chess board. Here are the details: The chessboard is an 8x8 board. Display the chess board before every move. Each empty square should just be a period. Eac square with a piece should have the piece's identifier. For identifiers, use lower-case for the white pieces, upper-case for the black pieces. o Use P/p for pawn, R/r for rook, N for knight, B/b for bishop, Q/q for queen, and K for king. " When a piece is moved, the location it moves from is then an empty square, and it then occupies the square it is moving to. If there was already a piece in the square it is moving to, then that other piece is eliminated from the game. Important: You do NOT need to enforce any rules of chess or verify moves, with one exception: If someone puts in a move from a position where there is not a piece, report an error and exit the program. o Other than that, you don't need to worry about the sides alternating turns, about pieces moving in ways they aren't allowed, about landing on your own pieces, etc. o Only one piece moves at a time, and it can move to any position on the board. You can specify the system you want the user to use to specify the starting and ending location. In reality, chess uses a standard system, where the columns are labeled a-h from left to right and the rows are labeled 1-8 from bottom to top. You do not have to use this system, but can if you wish. As an example, here is what the board would look like at the very beginning of the game: RNBQKBNR PPPPPPPP rnbqkbnr Remember to discuss this as a team and think through exactly what you will do before developing it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Describe the procedure of attaching a file to an email.

Answered: 1 week ago