Computer Science Canada Reversi |
Author: | pavol [ Sun Mar 05, 2006 1:34 pm ] |
Post subject: | Reversi |
this is probably one of the most complex things i've ever done in turing. thought i'd post it and get some feedback. ![]() |
Author: | cool dude [ Sun Mar 05, 2006 3:37 pm ] |
Post subject: | |
i'll give u a lot of credit for this one! ![]() |
Author: | pavol [ Sun Mar 05, 2006 3:48 pm ] |
Post subject: | |
Thanks. ![]() ![]() |
Author: | Delos [ Sun Mar 05, 2006 3:52 pm ] |
Post subject: | |
Very nice. I like it. - Error trap your input. Ctrl+Z crashes it. This is not too serious, but hey, might as well be complete. - Presentability could have been improved. Setting it so that initial instructions are displayed at the top left-hand corner is practical, but just not very pretty. Again, a minor point aside from the engine. - When selecting Starting Board, you may want to consider incorporating the mouse in addition to keyboard-selection. - Gameplay was smooth, no errors with mouse control. - Graphics were good, nothing too fancy and all within Turing's intrinsic limitations. - AI was not that difficult to beat though. I would suggest providing several levels of AI, for instance: + Random - chooses a random move out of a list of possible moves. Unpredictability is more difficult to play against than most think. + Recursive search - similar to what you have, I'm guessing. Looks at all possible moves, determines best (most conversions). 'Recursive' part comes in, in that it starts considering moves further down the line (nesting itself a set number of times), and finally returning the most expediant move. Read zylum's tut on Recursion if you're not familiar with it. Overall good stuff. +bits |
Author: | pavol [ Sun Mar 05, 2006 4:06 pm ] |
Post subject: | |
thanks a lot for all the suggestions, i'll surely look into it all and post an update later on. ![]() |
Author: | pavol [ Sun Mar 05, 2006 4:13 pm ] |
Post subject: | |
"Ctrl+Z crashes it" i'm not sure how that happens or why it happens. does this mean ill have to do something like use getch() and get the user to type in 'c' for comp and 'h' for human? or is there another way to prevent this? |
Author: | Delos [ Sun Mar 05, 2006 5:58 pm ] |
Post subject: | |
Ctrl+Z is an error based on ASCII input. Turing interprets it as the EOF marker. You could use a getch() sequence to filter it out (not too difficult), but you may end up with iffy input anyway. This would be the easiest way. I might suggest looking into an Input.KeyDown() based approach, but this would likely end up being quite a bit more than you really need for this programme. |
Author: | batman [ Sun Mar 05, 2006 6:22 pm ] |
Post subject: | Game |
Awesome game! When I was writing the junior contest I had some difficulty writing this program. I managed to finish it though, but mine is nothing compared to yours. Nice Game! ![]() |
Author: | [Gandalf] [ Sun Mar 05, 2006 7:03 pm ] |
Post subject: | |
Great game, good AI, good playability. -The AI was completely crushing me until I got a corner, after which it was an easy win for me. The second game was quite even. Either I suck or Delos is really good. ![]() -Text could be improved a bit, but as it is isn't bad. -Didn't get any errors while playing. Delos, I'm pretty sure Ctrl+Z is supposed to crash the program, like an Alt+F4 for Turing (it wasn't error proofed). At least, that's how it was for the DOS Turing. Definately one of the more worthy non-Catalyst submissions! |
Author: | Booya [ Sun Mar 05, 2006 7:10 pm ] |
Post subject: | Game |
Awesome game its even better then the one on my computer! |
Author: | pavol [ Sun Mar 05, 2006 7:59 pm ] |
Post subject: | |
thanks to everyone for the replies. ![]() ![]() |
Author: | jamonathin [ Mon Mar 06, 2006 10:46 am ] |
Post subject: | |
Good game. One thing you may want to change is the scale of your program. Seems a little big for a 800x600 monitor. One problem/error aside from the others. - If there's one space left and its the user's turn (black) and the user cant place his "circle" there, nothing happens. It just kinda sits there and waits for you to do something, whereas you cant. Other than that, good work. ![]() |
Author: | Delos [ Mon Mar 06, 2006 4:49 pm ] |
Post subject: | |
800x600?! What age are you living in! ![]() Though he has a point. As a challenge: - determine the absolute dimensions of the monitor. Yes, Turing can do this, it's a hidden piece of code somewhere in F10. - create an algorithm to resize your screen to fit any monitor. - if the monitor is *really* small or *really* big, resize your pieces as well. This will give you a taste of what its like to programme in dynamic environemtns, where you control absolutely everything and have next to no constant, hard-coded values. This can be quite useful in many cases, and is often a good habit to attain. |
Author: | pavol [ Mon Mar 06, 2006 5:22 pm ] |
Post subject: | |
to address the problem you encountered jamonathin, all i can say is "that's weird", because i do have the game check if the user or computer has no more moves left. if you could describe as close as possible where you wanted to place the piece or what pieces were around it that would help a great deal. ![]() and i'll look into the screen resolution thing. thanks guys im almost done the beginning where you select all the options, i think it's almost error proofed and looks a bit better |
Author: | MysticVegeta [ Mon Mar 06, 2006 6:55 pm ] |
Post subject: | |
Good game, nice graphics. No bugs here visible right now to me. |
Author: | pavol [ Mon Mar 06, 2006 7:51 pm ] |
Post subject: | |
i have updated the beginning part where the user chooses all the options and so i hope that fixed the input problem and as Delos suggested i incorporated the mouse. |
Author: | jamonathin [ Tue Mar 07, 2006 10:18 am ] |
Post subject: | |
Delos wrote: 800x600?! What age are you living in!
![]() The age of LanSchool ![]() ![]() |
Author: | pavol [ Wed Mar 15, 2006 4:51 pm ] |
Post subject: | |
updated the game again. this time i added a title screen and save/load game capabilities. the computer as a player has not been updated but i have made the program more user friendly(or something like that) ![]() |