Need Help In Programming - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Need Help In Programming (/showthread.php?tid=72423) Need Help In Programming by albert on 03-07-2007 at 08:15 PM
Hey.. I'm currently trying to code an Othello (aka reversi) game in Java, and I have a problem with my algorithm. code: Of course that code only applies for the checking if there's anything on the left. I have to do the same for right, up, down and 4 diagonals. I was wondering if there was a mor efficient and shorter way to do it. Thanks for the help everyone. Here is a pic that shows all the possible moves ( you can see the possibilites in white ) RE: Need Help In Programming by CookieRevised on 03-07-2007 at 08:38 PM
http://www.radagast.se/othello/howto.html RE: Need Help In Programming by foaly on 03-07-2007 at 08:47 PM
quote:Well there are different kind off programming languages... In prolog the idea would be completely different... btw. reversi/othello is that the same as go? RE: Need Help In Programming by CookieRevised on 03-07-2007 at 08:54 PM
quote:I think it doesn't matter though, since he is asking for logical routines; a methodology to program effeciently the logic behind it. This could be done with even pseudocode or whatever. Aka: how do you make it efficient, not what is the syntax of the code to do it. quote:it's similar, but not quite the same... all have their own twist in the rules |