Page 1 of 1

[Mod] Real Chess Game [git] [realchess]

PostPosted: Sun Oct 25, 2015 17:55
by jp

Real Chess


Bored of digging blocks ? Invite your friends and play a real chess game !

This chess is formspec-based and follows the same rules as in real life :

  • Deterministic moves.
  • Turn-by-turn serie.
  • Win and Game Over after killing a king.
  • Castling and pawns promotion when reaching the end of board.
  • etc.
Everyone who access the formspec can watch the activity in real-time (but only the 2 players are able to move their respective pieces).

Download | Sources | Bug report

Image

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Sun Oct 25, 2015 19:24
by Don
Wow. That is awesome!

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Sun Oct 25, 2015 21:22
by qwertymine3
jp wrote:This chess is formspec-based and follows the same rules than in real life :


I looked through the source and didn't see any way to 'castle' or use 'en passant', if this is the case, I think it is a bit early to say that it follows the real life rules

Please correct me if I'm wrong

Also that 'than' should be an 'as' :)

EDIT: I also can't find any code for promotion of pawns - this claim is less thoroughly checked though

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Oct 26, 2015 00:16
by qwertymine3
I have found a few more issues with the accuracy of the chess, will add as new issues in the issue tracker

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Oct 26, 2015 22:23
by jp
Castling and pawns promoting supported in current git state.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Tue Oct 27, 2015 11:08
by Ferk
That's a cool idea.
I didn't realize formspecs and inventories could be suitable for something like this. Nice!

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 17:22
by Diamond knight
maybe there could be a reward for winning or something

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 18:59
by rubenwardy
Diamond knight wrote:maybe there could be a reward for winning or something


Add awards? to depends.txt
Then add this somewhere in the file, like you do with minetest.register_node:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("awards") then
   awards.register_achievement("realchess:win",{
      title = "Chess Winner",
      description = "Win a chess game"),
      prizes = {"default:stone 99"}
   })
end


Finally, after this line https://github.com/kilbith/realchess/bl ... t.lua#L536
add:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("awards") then
   awards.give_achievement(playerName, "realchess:win")
end


The award will only be given once.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 19:11
by jp
No sorry, I won't add an award to this mod, since a winning can be faked by a player for earning the award perpetually. Thanks for the proposal anyhow.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 19:43
by Napiophelios
edit:
oh damn sorry wrong topic
delete this post please

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 20:28
by rubenwardy
You don't have to give an item. Awards, iirc, are private so you're only really cheating yourself.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Mon Nov 02, 2015 20:34
by jp
OK I might consider individually an award, but not a material prize.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Tue Nov 17, 2015 23:58
by Diamond knight
maybe something like a betting system where the players playing provide the reward and winner takes all

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Tue Mar 22, 2016 10:00
by jp
Update : project moved on Minetest Mods.

Re: [Mod] Real Chess Game [git] [realchess]

PostPosted: Sun May 22, 2016 22:22
by bark
I love this mod! The fact that other players can watch the game makes it even cooler. I found a couple of bugs, and I have some suggestions for improvement.

* Bug: A player that is in check or check mate is not forced to move/protect the king.
* Bug: Game doesn't end when player is in check mate.
* Suggestion: Display both player's moves in the chatlog, not just opponent. The current state make it harder to keep track of whose turn it is.
* Suggestion: Display dead pieces on the side of the board