Explain the chess moves with the help of the program

Assignment Help C/C++ Programming
Reference no: EM13936800

Program should be done using C language and using Dev-C++

I need main manu as the following

MAIN MENU

(Thema1)

[a] Display Empty Chess Board

(Thema2)

[b] Check Validity of Chess Notation (we use K, E, Q, R, N, B , P.)

THE CELLS ARE a1, a2, a3, a4, a5, a6, a7, a8

b1, b2, b3, b4, b5, b6, b7, b8

c1, c2, c3, c4, c5, c6, c7, c8

d1, d2, d3, d4, d5, d6, d7, d8

e1, e2, e3, e4, e5, e6, e7, e8

f1, f2, f3, f4, f5, f6, f7, f8

g1, g2, g3, g4, g5, g6, g7, g8

So valid moves are Ka1 to Ka8 or Kb1 to Kb8
or Kc1 to Kc8 or Kd1 to Kd8 or Ke1 to Ke8 or Kf1 to Kf8
or Kg1 to Kg8 also valid moves are all moves that K does by using Q, R, N, B or P

A user by pressing "v" gives for example Kb9 which is not valid move he will get a notation on screen "not valid move" . iF HE gives Kb2 then gets on screen "Valid move. Ok"

(Thema3)
[c] Save Moves to a Text File (This selection do the same as the previous but store the moves in a txt file)

(Thema4)

[d] Find Chess Moves in a String (user gives a char string of 30 characters. If he gives more the program keeps the first 30 and it finds valid moves from 30characters . The results should be displayed on screen )

(Thema5)

[e] End Program

Selection [d, v, s, f, e]:

Attachment:- 8x8chess.docx

Reference no: EM13936800

Questions Cloud

Demonstrate critical understanding of innovative thinking : Demonstrate a critical understanding of the innovative thinking tools and how it can be applied within the process of creative development.
Explain how the local clinic meets and supports for ebp : In addition, explain how the local clinic meets, supports, and advocates for evidence-based practice (EBP). As a part of this assignment, you will need to create a questionnaire and interview at least one healthcare provider who is familiar with y..
Provide research on gene splicing, a dna technology : Provide research on gene splicing, a DNA technology that bio-engineers can use to create organisms with traits never before seen in nature (herbicide-resistant crops, mice with fluorescent organs, yeast cells that smell like wintergreen, etc.). Wh..
Calculate the annual ordering costs and annual carrying cost : Calculate the annual ordering costs, the annual carrying costs and their sum for purchase-order quantities of 300, 500, 600, 700 and 900, using the formulae described in this chapter.
Explain the chess moves with the help of the program : A user by pressing "v" gives for example Kb9 which is not valid move he will get a notation on screen "not valid move" . iF HE gives Kb2 then gets on screen "Valid move. Ok"
What strategic initiatives would you recommend to sigma : What strategic initiatives would you recommend to Sigma? How would you ensure that the firm has the resources, expertise, systems, etc. to implement those initiatives?
What is genetic transformation : When E. coli cells containing the pUC 118 plasmid are placed on growth medium containing 10 times as much ampicillin as we used in our lab, they are unable to grow.
Describe the strengths and weaknesses of the aggregate : Analyzing the Aggregate Strengths and Weaknesses- Analyze and describe the strengths and weaknesses of the aggregate and the community where the aggregate resides
What are the key features of jit production : What are the key features of JIT production? Compare the operating performance of the Frankfurt and Stuttgart plants in 2007. Comment on any differences you observe.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculate the total of a purchase from a farmer''s market

You will develop a program that can calculate the total of a purchase from a farmer's market that sells apples, bananas, and oranges. At this particular market, apples are $1.99/lb., bananas are $0.99/lb., and oranges are $1.50/lb. Users should be..

  Write a cpp program for magic number

Ask the user to enter a "magic number," which is an integer between 0 and 9, inclusive. Then, ask a user to enter 10 integers between 0 and 9, inclusive. If a user enters an integer outside of that range, therefore invalid, notify the user of the ..

  Write a function named putinorder

Write a function named "PutInOrder" that has 2 double reference parameters (say a and b). The function rearranges the values pointed to by a and b such that a points to the smallest value and b to the largest value.

  Users to input two forces by their components

write a programm to ask users to input two forces by their components of (Fx1,Fy1) and (Fx2,Fy2) from the keyboard.call twice the function to display both magnitude and direction angle of two forces on the screen.add two forces and display both magni..

  Accepts a pointer to a c-string as an argument

Write a function that accepts a pointer to a C-string as an argument and capitalizes the fist character of each sentence in the string. For instance, if the string argument is "hello

  Objectivein this assignment you read a list of employees

objectivein this assignment you read a list of employees from a csv file and convert them into corresponding objects.

  Implement program which performs basic arithmetic operation

Write a complete C program that prompts for two integer numbers (one number at a time, or both at once, as you wish), reads them into two variables of type int find then calculates and prints the following five values

  User that will be asked to input the time

Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and this minutes is a non-negative integer.

  Calculating the gcd greatest common divisor

Write a C++ code for calculating the GCD Greatest Common Divisor between two positive integer numbers. You  should  use Euclid's  original  subtraction  based  GCD algorithm ( not  using  modulo operator).

  You need to prepare a program linear solver

Write a C program, called linear solver.c, that solves single-variable linear equations. The pro- gram should prompt the user to enter a linear equation of the form

  Set of integer numbers and another single number

Write an algorithm called locate (with running time log n, that accept a set of integer numbers and another single number and finds out whether the number is found in the set of integers. If it exist, it should print its index in the list otherwis..

  Write a program that allows a user to enter 12 double values

Write a program that allows a user to enter 12 double values representing store sales for each month of one year. After all 12 values are entered,

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd