Lab 5: Checkers

In this week's lab you must write a C program to display a checkers board using a 1-D array.  The board will allow players to move their pieces forward, but does not need to handle jumps and capturing.  Pieces will either be 'X' or 'O' depending on side, blank spots on the board will be '.', and spots that can be legally moved to must be '-.'

The execution of the finished program should look like what is shown below.  (User input is shown in bold, though in your program it will not be bold.)

Welcome to Checkers.

--------------

Board is:

A B C D E F G H

X . X . X . X . 1

. X . X . X . X 2

X . X . X . X . 3

. - . - . - . -  4

- . - . - . - . 5

. O . O . O . O 6

O . O . O . O . 7

. O . O . o . O 8

Please enter the current position and desired position of the piece to be moved: A3B4

--------------

Board is:

A B C D E F G H

X . X . X . X . 1

. X . X . X . X 2

- . X . X . X . 3

. X . - . - . -  4

- . - . - . - . 5

. O . O . O . O 6

O . O . O . O . 7

. O . O . o . O 8

Please enter the current position and desired position of the piece to be moved: A6C5

       - . - . - . - .

   . - . - . - . -

   - . - . - . - .

   . - . - . - . - 

   - . - . - . - .

   . - . - . - . -

   - . - . - . - .

   . - . - . - . -

Notes:

Submission: