Coding Machine Learning (C++, pseudo code only please) For a game of RPS, the computer should learn from the previous ga

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

Coding Machine Learning (C++, pseudo code only please) For a game of RPS, the computer should learn from the previous ga

Post by answerhappygod »

Coding Machine Learning (C++, pseudo code only please)For a game of RPS, the computer should learn from the previousgames to predict the players next throw and make a "winning"throw.
The computer uses code below to randomize its decisions:
srand(time(0));machine = rand() % 3 + 1;
I believe that I need to add some version of (#/number of gamesplayed) where # is the total of the outcomes of eachgame. Please walk me through how I can code this without giving up theentire code. I want to point out I understand the concept of an RPSmachine learning, I just can't seem to code it out.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply