playMaker

Author Topic: Simple Chinese chess???  (Read 6217 times)

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Simple Chinese chess???
« on: October 01, 2013, 09:45:20 AM »
Hi,

I'm plaining to make a Chinese Chess in Playmaker. Is there any tutorial or suggestions to get started?

thanks,

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Simple Chinese chess???
« Reply #1 on: October 02, 2013, 02:38:00 AM »
Hi,

 Not really I am afraid... but sound cool!

can you describe more what you are after?


bye,

 Jean

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Re: Simple Chinese chess???
« Reply #2 on: October 02, 2013, 10:31:53 AM »
^_^

Actually, this is just a simple assessment for students who are in the first trimester of Game Programming. This is pretty easy for any student in any kind of language (my experience). But here, I just want to prove that Playermaker can do much quicker than the traditional way.
thanks much!
« Last Edit: October 03, 2013, 12:38:35 AM by xunxun »

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Simple Chinese chess???
« Reply #3 on: October 02, 2013, 11:10:48 AM »
Maybe if you explain the games mechanics/ elements (and what parts you know how to do and which not), helping would be easier.

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Re: Simple Chinese chess???
« Reply #4 on: October 03, 2013, 12:22:00 AM »
Please take a look at game mechanic.

http://en.wikipedia.org/wiki/Xiangqi

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Simple Chinese chess???
« Reply #5 on: October 03, 2013, 01:52:29 AM »
ouch...  :o

With or Wihout playmaker, this is going to be tricky.

I would start with the following:

-- design a prefab for each piece,
-- Implement the logic of movement ( with no rules)
-- implement rules ( with no impact on the game, just a rule with input and output ( true or false)

then you combine all of that.

Do you want to do a chess engine? or a validator for player movements? that's two very distinct project actually..

bye,

 Jean

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Re: Simple Chinese chess???
« Reply #6 on: October 03, 2013, 11:54:11 AM »
ouch...  :o

With or Wihout playmaker, this is going to be tricky.


Do you want to do a chess engine? or a validator for player movements? that's two very distinct project actually..

bye,

 Jean


Jean, you are right in both ways. Please take a look at this Code.... about 80 lines of code for a completed game with AI included .... how tricky it is...!

https://github.com/chenxiao07/TinyChess/blob/master/index.html
« Last Edit: October 03, 2013, 12:05:41 PM by xunxun »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Simple Chinese chess???
« Reply #7 on: October 04, 2013, 01:58:09 AM »
Hi,

 That's MAD code!!!! totally insane! If it had comments I guess ti could be possible port this, but without any comment, this is going to require a lot of coffee... :)

Have you been able to testify that this code works?

Bye,

 Jean

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Re: Simple Chinese chess???
« Reply #8 on: October 04, 2013, 08:18:33 AM »
 :-\ it works as it does Y_Y.

you can try to play it here http://49.212.183.201/chess_tiny.html

and I totally agree with you that ... looking at this piece of coding is a nightmare ^^ lol