understanding void functions
Hi all, I have an assignment that needs me to simulate a game of beetle.
Beetle (game) - Wikipedia, the free encyclopedia
It's just a simple dice roll game, one number represents one part of the beetle and my professor wants us to use a function like this:
void drawBeetle( string parts );
This function should draw the current state of the beetle on the screen after the diceroll. (same function should be used for human and computer players). The input parameter parts indicate which parts should be drawn.
I've been reading up on void functions, and I have an idea of how they work (not really), but i'm still a little confused by the logic of the assignment. So far all I did was write a function for a diceroll.
Is the idea to draw the pieces of the beetle in main, and then have the final picture in the void function?
I'm not really asking anyone to write any code, just hope anyone could help out with how the program should flow. Thanks in advance, hope someone can help.
edit: Sorry, just realized the title sounds a bit misleading. Yes, I'm asking for help on an assignment, no I do not want the answer.