Current location: Hot Scripts Forums » Programming Languages » C/C++ » Help with C++ Gui Simple game


Help with C++ Gui Simple game

Reply
  #1 (permalink)  
Old 04-23-09, 09:37 PM
stahlkid stahlkid is offline
New Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Help with C++ Gui Simple game

Alright so I am trying to make a simple grid based game. I have a 20 x 20 based grid in which I have changed all the buttons Green with

controls[i,j]->BackColor = System:: Drawing::Color::Green;

in a vector of vectors and that works all good.
So then I have it set to were if you click a grid it turns white.

Alright now at the beginning I have 3 squares randomly made Brown, and ever 3 clicks another 2 square turns Brown.

So what I am trying to figure out, right now the numbers that randomly generate will turn any square Brown, but I want to make it so that the square that have already been made White can not be turned brown. Can someone help me with this??

Last edited by stahlkid; 04-23-09 at 09:39 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple RPG game SolidSamurai PHP 16 07-06-08 05:19 PM
Paypal Generator Hunter JavaScript 1 08-06-06 07:49 AM
simple gui hammie Everything Java 2 04-29-06 10:57 AM
Simple Online Multiplayer Game (need coder and site designer) Midriv68 Job Offers & Assistance 0 01-27-06 04:31 PM
Basic and Simple Hang Man Game richboy5 Script Requests 6 06-23-05 02:56 PM


All times are GMT -5. The time now is 04:39 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.