Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~789 People Reached
Favorite Forums
Favorite Tags
Member Avatar for Gobroski

I am attempting to write a Hangman game using OOP. I have it done using procedural programming. I am not looking to make it a two person game yet. What Objects and methods would you all use? I was thinking newWord = class(tObject) word : string, definition : string, typeOfSpeach …

Member Avatar for Gobroski
0
214
Member Avatar for Gobroski

This works in C++ Builder: int chcolor; for(int d, d < 5, d++); { String name = "d" + IntToStr(i+1); TLMDSpeedButton* button = dynamic_cast<TLMDSpeedButton*>(this->FindComponent(name)); chcolor = random(6)+1; switch (chcolor) { case 1: button->Color = clRed; break; case 2: button->Color = clSilver; break; case 3: button->Color = clBlue; break; case 4: …

Member Avatar for Gobroski
0
575