Computer Science Canada CONNECT 4 |
Author: | SuperGenius [ Fri Mar 12, 2004 8:16 pm ] | ||
Post subject: | CONNECT 4 | ||
This is my finished connect 4 game. It rules. Try it out if you want, and if you spot a glitch please let me know, although I'm fairly certain that i've taken care of them all. There is a process to play music when you win, which I have commented for your convenience. Change the filename and uncomment it if that;s the kind of thing that floats your boat.
|
Author: | Delos [ Fri Mar 12, 2004 8:52 pm ] |
Post subject: | |
Oh my...that's...a lot...of code. In other words: - please attatch .t files if they are going to be that long. It makes everyone's lives easier. - if you're going to put the code right into the post (which isn't always a bad idea), try using the 'code' tags. Not only does it look neater, but it's more presentable as well! That and you won't get flamed as much... Otherwise...look's like a hopeful proggie. |
Author: | jonos [ Fri Mar 12, 2004 10:55 pm ] |
Post subject: | |
nice program, you should make it with ai though, that would be a nice challenge, and using the mouse which wouldn't be too hard. very smooth and nice looking. |
Author: | Paul [ Fri Mar 12, 2004 11:05 pm ] |
Post subject: | |
Yay! Good to see it up and running after all that work. |
Author: | Delos [ Sat Mar 13, 2004 4:26 pm ] |
Post subject: | |
Nice! Just found a bug though: I won using a diagonal win with these coords: (1, 4) (2, 3) (3, 2) (4, 1) And then the flashy dots came, but they appeared at the following coords: (5, -1) (6, -2) [and I'm assuming...] (7, -3) (8, -4) So...yeah...that was odd. Shouldn't be too hard to fix though. |
Author: | Paul [ Sat Mar 13, 2004 8:40 pm ] |
Post subject: | |
Methinks its the problem with the array, where if you played a piece in the analog of 1,8 in the chart, it would fill variable (1,1) |
Author: | SuperGenius [ Sat Mar 13, 2004 8:48 pm ] |
Post subject: | |
1. I noticed and fixed that little problem where the wrong squares flashed orange and blue 2. I thought I had nailed down the problem where a circle would flash at (0,0) at the start of the second game, but apperently not. 3. sorry about not using [code]tags. ill edit my post right now and put them in. 4. are you kidding me about A.I.? I almost broke the monitor with my face doing this much. 5. thanks guys |
Author: | SuperGenius [ Sat Mar 13, 2004 9:07 pm ] |
Post subject: | |
there... i think i've taken care of the issues you guys brought up, and ive updated the source in the first post. As for my decision to post the soucre and not attatch it, there are two reasons. 1. I didnt think to attatch it 2. I'll be able to work on it at school if I want without having to use disks. one decided to go and have an error when I was working on this, so I lost about a hundred lines of code, but I rebuilt my program more efficently, so I guess it worked out. 3. Everyone in my class will end up seeing it probably, because they are lazy and all they do is go on compsci and play games. Or look at web pages titled "Lord of the Blings" when the teacher is talking. |
Author: | the_short1 [ Sun Mar 14, 2004 7:21 pm ] |
Post subject: | |
good game. i like...it would be nice with a mouse.. and not too hard either... good job.. + 2 bits... also.. that GTO in ur avtar rocks.. the new one.. (in sig) sucks i hate the look of it... it lost its Muscle Car look... |
Author: | Cervantes [ Sun Mar 14, 2004 7:39 pm ] |
Post subject: | |
talk about cheap You recieved 2 bits for telling him that he got 2 bits from you anyways, great job on your connect 4 program SuperGenius. +20 Bits, and + 5 for saying "I almost broke my monitor with my face doing this much" What's this Lord of the Blings? It sounds interesting |
Author: | shorthair [ Mon Mar 15, 2004 9:22 am ] |
Post subject: | |
Great , just great , good fun for 20 mintes ( thatas a long time for a turing program ) , Just to ket you know , a good way of using code in different places is to send yourself the code in a private message , that way to ca npost it as a file here , and then have hte source in youyr private messages folder ( ive done it a fewtimes ) to get stuff from school to home !!11 |
Author: | the_short1 [ Mon Mar 15, 2004 12:18 pm ] |
Post subject: | |
once dan gets back he mioght re enable the attachment mod to emails... and have it delete the attachments every week... but yea... thats smart sending yourself the source/// BTW: you can just download to the temp folder and open??? you NEED to download to ur floppy... that SUCKS... PS: ... i did that with my school email... i sent big files to myself it has unlikmited attaachment size and inbox size... and its great... i sent myself games and 150 Mp3's/// i had 300 MB still in there... but at the end of the semester the board told me to clean it up.. bring it down... to 50... i understand that... |