Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Baduk Board Game

Name: Anonymous 2013-05-15 0:23

http://pastebin.com/cPgmvZsZ

Here are the 5 classes in my game of Baduk, Weiqi, Go, or whatever you want to call it.

I would like some help, preferably soon (I'm on a tight schedule), if you're willing to give it to a novice programmer.

Most importantly, I cannot figure out why when I surround a stone or group of stones, I do not capture them. It must be an error somewhere in the three capture functions, but they appear fine to me.

After that, I'm looking for help in my coding style. Any suggestions or tips you can provide would be appreciated.

Thank you in advance.

Name: Anonymous 2013-05-15 0:43

It's pretty fine! Just watch your opening curly brackets, they should have a space before them, and always write the access modifiers (public, private).

Not sure about the stone problem, might look in nine hours, if no Anon does that.

Name: Anonymous 2013-05-15 0:44

You could of told us it was Java.

I don't think my FreeBSD box even supports such shit. It might be in the ports somewhere, but I'm not going to install it.


try {}
catch {}

My fuckin sides.

Name: Anonymous 2013-05-15 1:10

>>2
Thank you for the advice. A lot of my access modifiers are bullshit right now (public), but I will clean it up after solving the stone problem.

>>3
Sorry about that.
It's java.

I would avoid it like the plague, but it's what I have to use for this course -- Ironically named Intermediate OOP, we can't use C++.

Name: Anonymous 2013-05-15 2:36

I have just gone through a series of tests and stones are being captured, though at random times and all the wrong stones, not to mention it captures both black and red (though it should only be capturing stones labeled "opponent" because only those are added to the list).

If anybody can go through just the three functions for capturing stones, the issue is definitely within those.

Name: Anonymous 2013-05-15 3:43

http://i.imgur.com/1E5sb6g.png

When I placed a black stone in the spot I marked blue, the ones with holes in them disappeared. I can't figure out why.

Name: Anonymous 2013-05-15 12:07

Last bump

Name: Anonymous 2013-05-15 13:36

>>7
Ugh, sorry, forgot about you. I actually neither know Java (a C# guy), nor rules of the game, but I'd like to delve this a bit.

Care to upload archive with sources and all resource stuff?

Name: Anonymous 2013-05-16 0:14

I'll actually do that right now. Maybe you'll see this post. You won't need to know Java because the problem is with the logic in the check capture functions.

http://uppit.com/5nv9vq6e7grc/Weiqi_pub.rar

Name: Anonymous 2013-05-16 0:24

>>9
Saw it, but have to go to work. What is the deadline?

Name: Anonymous 2013-05-16 0:29

>>3
FreeBSD on the desktop
My fuckin sides.

Name: Anonymous 2013-05-16 0:43

>>10
No deadline. The project didn't have to have working game logic. I'm just anal and would like to have a working game, not just a good grade.

Name: Anonymous 2013-05-17 13:04

Bump

Name: Anonymous 2013-05-17 15:35

>>11
>LEEEEEEEEEL LE MY SIDES ARE IN LE ORBIT XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>E/G/IN JOKE /G/ROSKI, TRULY E/G/IN XDDDD
>2013
>NOT LE /G/REENTEXTIN/G/ ON LE RE/G/G/IT
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>MUH FACE.JP/G/
LEL I SAID MUH
FUCKIN/G/ E/G/IN /G/WIN /G/RO LEEEEEEEEEEEL

Don't change these.
Name: Email:
Entire Thread Thread List