Recreate an old DOS based game from my
Recreate an old DOS based game from my childhood (which was based on the “Classic board game, Clue”) in the C++ console Learn the appropriate tools to do this, such as using color Make the game easily playable for one to six players, expanding the option of the board game
Players type in their names and select the character they wish to portray. This also determines their token color and order of play. The computer then deals out the cards and chooses a solution. Once setup is complete, players move around the board from room to room trying to guess who killed Mr. Boddy, where, and with what by making suggestions. The computer will try to disprove their suggestion. If it cannot, the player will surely be informed. When a player thinks he/she has figured it out, an accusation is made and if they are right, they win. If not, they are removed from game-play and the others continue to play until everybody loses or somebody wins.
Player Booleans: roll suggestion passage suggested human Int: color character loc_x loc_y order linked. List. Type who_cards what_cards where_cards Card. Code code[21] string name
Location Int: x y col 1 col 2 room. ID Char ch 1 ch 2 Boolean available
void print_graphic(HANDLE h. Console, string file) { ifstream fin; int color; int object; fin. open(file. c_str()); assert(!fin. fail()); cout << "nnn "; while(fin >> ws && !fin. eof()) { fin >> color; if (color==-100) { Set. Console. Text. Attribute(h. Console, 0); cout << endl << " "; } else { fin >> object; Set. Console. Text. Attribute(h. Console, color); cout << char(object); } } Set. Console. Text. Attribute(h. Console, 7); fin. close(); }
1. Create image in ZZT 2. Screenshot the image into paint 3. 3. Code line by line the data file – color number then character number
Roll the die * nine rooms, each with unique: [1] number of doors [2] placement of characters * what if all spaces are blocked around player? * what if all doors are blocked? * can’t exit/enter same room on one turn Make a suggestion * movement of players/weapons – again, each room has individual locations of players/items Deal & Shuffle the cards * don’t want to deal same card twice * shuffling cards without losing dealt status
- Slides: 10