This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

pavolbiacko2002
pavolbiacko2002 presents ...

2020/5/24

Chess

My own version of chess in Greenfoot. There is no check/mate/tie indicator, I don't have knowledge how to do it yet. Hope you still enjoy it.

3203 views / 24 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse game demo with-source chess 2players local

This scenario is a member of: My friends' and my best games


open in greenfoot
Your browser is ignoring the <APPLET> tag.
And why can you kill the king and not check him? And why can't I do the varnish?
It it hard as I wrote up in the comment, now at the moment I can't do it with my knowledge, maybe sometime in the future ;)
I can help you if there's anything I can do) I also did chess and can share the algorithms)
Wow that would by very nice from you. I have trouble mainly with the check/pate/mate because of there are many possible ways to ... you know stuff around it. It is hard to write what I mean but I think you get it
In order to check the check, you just need to see if the pieces of the opposite team can resemble the king's cage. To check the checkmate, you need to check the check + check the neighboring cells ( if they have a shape, you do not need to check them. With a check on the cover of figures and other things will be more difficult, you can just do this, if a person(when his king is under the Mat) does not go for 20-30 seconds, so he loses + it is necessary to do so that the king could not be killed, but already, I think, quite simple.
I think I get what you mean but making a program is a problem for me, algoritmic problem as I read yours is not a problem. But I am new to Greenfoot and I would like to wait to the moment when I go to college because now I am only on High School. Thanks for solution I will use it when the time will come :) And I have also one question. (beside chess) When I publish a scenario, it won't upload (just show initializing). I don't know what to do...do you know how to fix it?
About the download - sometimes the download is quite long(up to 5 minutes or more). About Greenfoot - you can study it yourself(in the help tab there is A greenfoot Library tab - there are all the commands and their description, perhaps I will download your game and make some kind of algorithm that should help you.
By the way, I noticed that you have a small bug - the chess field changes slightly when you turn(the white cells change to black)
By the way, do you speak Russian?
With the bug I don't get it what you mean, because I see no difference. And I am from Slovakia but I can't speak Russian.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Kostya20052011 egtgomez