Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 concentration game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mish




PostPosted: Sat Dec 16, 2006 10:39 pm   Post subject: concentration game

omgosh >.< has anyone ever done a concentration card game before? i have to do one and i dont know where to start Confused
Sponsor
Sponsor
Sponsor
sponsor
StealthArcher




PostPosted: Sat Dec 16, 2006 10:40 pm   Post subject: (No subject)

What kind of concentration card game? what does it have to do?
mish




PostPosted: Sat Dec 16, 2006 10:42 pm   Post subject: (No subject)

loll it's supposed to do what concentration does. umm its a game where yu have lots of cards.. and yu flip them over. and if they match.. they stay flipped over.. and if they're not then they don't stay flipped up.
mish




PostPosted: Sat Dec 16, 2006 10:47 pm   Post subject: (No subject)

blahh how do i make a card flip over for my game? >.<
StealthArcher




PostPosted: Sat Dec 16, 2006 10:48 pm   Post subject: (No subject)

well you would want it to be fullscreen, with all your card design types as an array, then random generations of what the cards on a screen(draw a filled box, or draw your own card backs, and fill with shapes from turing or your own card designs)types are i.e. card in position 1 is type 2(which matches with the other type 2 out ther, make sure to not allow odd numbers of a design on the screen, then run checks of what the stated card designs are (use mouse.where) to see if they match, run through another proc to make them either flip back over or stay up.

BTW these are usually called memory games, not concentration.
StealthArcher




PostPosted: Sat Dec 16, 2006 10:50 pm   Post subject: (No subject)

mish wrote:
blahh how do i make a card flip over for my game? >.<


sheesh post at the same time as me... now i have to post again...


Just take the button.press, then check to see if the button is pressed over the coordinates of the card(whatever oine they want to flip) then replace the photo of the card back with the cards specific "front".
uberwalla




PostPosted: Sat Dec 16, 2006 10:50 pm   Post subject: (No subject)

ok i know its not really the nicest way to code probably but you could store them in an array of flipped up and flipped down. (both different.) and then make the arrays boolean i think it would have to be. and if flipped = true then use array of flipped ones. and so on. and to flip them over just clearscreen then reset them to their true or false state.
mish




PostPosted: Sat Dec 16, 2006 10:54 pm   Post subject: (No subject)

oh snapp.. that's not concentration?! what's concentration then LOL! because that's what i have to do for my isu. and how did yu become a novice so quickly stealtharcher ?? XD
Sponsor
Sponsor
Sponsor
sponsor
StealthArcher




PostPosted: Sat Dec 16, 2006 10:58 pm   Post subject: (No subject)

1. Concentration card games are, as far as i know, those weird ones they use for psychic testing.

2.You are also a novice, check out the FAQ to see how many posts you need for each rank.
mish




PostPosted: Sat Dec 16, 2006 11:00 pm   Post subject: (No subject)

nuh uhhh concentration games are what i said they were >.< i just googled it =D
StealthArcher




PostPosted: Sat Dec 16, 2006 11:01 pm   Post subject: (No subject)

Snap, nevermind, just looked it up, apparently those games are called by both concentration and memory card games, so your idea is correct.
mish




PostPosted: Sat Dec 16, 2006 11:14 pm   Post subject: (No subject)

sooo has anyone ever done a concentration game on turing before? =(
ericfourfour




PostPosted: Sun Dec 17, 2006 12:42 am   Post subject: (No subject)

You should start off with a 2D array (13x4) of booleans. These will be your solved cards. true means face up (solved) and false means face down. You will also need a 2D array of ints. These will contain the cards' numbers. Each turn allow the user to select two cards. If these two cards match make them true in the array.

If you want to go a bit advanced you can look into records to keep it all in one 2D array instead of two.

That is a pretty basic start. It shouldn't take much time to code. Smile
mish




PostPosted: Sun Dec 17, 2006 2:36 pm   Post subject: (No subject)

LOL! i'm really bad with arrays. i dont think i've done anything with arrays in my class =/
Cervantes




PostPosted: Sun Dec 17, 2006 2:52 pm   Post subject: (No subject)

Then you should head over to [Turing Tutorials] and read up on arrays. Smile
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 15 Posts ]
Jump to:   


Style:  
Search: