C++ Problem PROBLEM: In a game of chess, you can estimate the strength of a current game by adding up the "weights" of t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C++ Problem PROBLEM: In a game of chess, you can estimate the strength of a current game by adding up the "weights" of t

Post by answerhappygod »

C++ Problem
PROBLEM: In a game of chess, you can estimate the strength of a
current game by adding up the "weights" of the pieces on the board.
One weighting system is: 9-Queen, 5-Rooks, 3-Knights,
3-Bishops, 1-Pawn
Write a program to ask the user how many of each type of piece
is on the board. Compute and display the total value of the
pieces.
For example: if the user had 1 rook, 2 bishops, and 5 pawns on
the board, the total value would be 16 (1*5+2*3+5*1).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply