Tenzi C++

I don't even know where to start. I made a sort of pseudocode:

Create a C++ program to play the game Tenzi. There will be two modes of Tenzi to play, Tenzi and Fun Tenzi. The user will have a choice betwenn these two games (menu).

Tenzi starts by the two players (user vs computer) rolling their ten dice at the same time, they then diecide a number to go for. Each player can choose their own.

The goal is to keep rolling the dice until they are all the same. The first player to get all 10 wins.
A player can choose to pick a different number if they want to mid-game. So, if the user started off with number 4 but decided three rolls in to go with 5, that is acceptable.

Fun Tenzi is when both players decide on a number before rolling and the program rolls until a player wins.

There must be a defined struct with the elements for tenzi, arrays for the dice, a random num gen for the dice, the program should be split into properly formed functions that account for no duplicated code and are called and return values appropriately.

Each round of rolls should display all of the user's dice values, the user's target number, and a prompt for the next action to take (rool, change number, or quit). When the game ends, regardless of mode, display all the user dice values and the computer's as well (say who won), and ask player if they want to play again or quit The computer should be making sound judgment (if there are five 4's on the first roll, they should pick the five 4's) after each roll.

The program should also save a win/loss log in an external file named gameLog.txt (append 'computer wins' or 'user wins' to the file)
Can you show us your pseudocode?
Registered users can post here. Sign in or register to post.
<rt id="pwjBlLZ"><small id="pwjBlLZ"></small></rt>
<acronym id="pwjBlLZ"></acronym><rt id="pwjBlLZ"></rt>
<tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr><tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr><acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym>
<acronym id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></acronym>
<option id="pwjBlLZ"></option>
<tr id="pwjBlLZ"><optgroup id="pwjBlLZ"></optgroup></tr>
<acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym><acronym id="pwjBlLZ"></acronym>
<acronym id="pwjBlLZ"><small id="pwjBlLZ"></small></acronym>
  • 6512882421 2018-04-19
  • 4659652420 2018-04-19
  • 2967832419 2018-04-19
  • 8339042418 2018-04-19
  • 8147112417 2018-04-19
  • 2774752416 2018-04-19
  • 4316132415 2018-04-19
  • 6265742414 2018-04-19
  • 1875142413 2018-04-19
  • 4146552412 2018-04-19
  • 8205662411 2018-04-19
  • 959982410 2018-04-19
  • 7153742409 2018-04-19
  • 9349932408 2018-04-18
  • 6024052407 2018-04-18
  • 2113432406 2018-04-18
  • 7629172405 2018-04-18
  • 163882404 2018-04-18
  • 3515922403 2018-04-18
  • 5047802402 2018-04-18