Page 1 of 1
Source of games
Posted: 18 January 2015, 14:48
by morphles
I'm trying to build my first game, when connected using SFTP I see my game, reversi and gomoky, but I want to see sources of more involved games to better understand what is best way to implement what I want. For example I need multipart player turns, that is player does action, and does other action. In my case I'm doing Connect6, so player first plays one stone, and then immediatly another stone. Do I need to separate both stone in separate states/action, or can they be on action/state. Though I would asume more questions might arise, thats why I want to browse code for references.
Re: Source of games
Posted: 18 January 2015, 18:15
by sparr
I don't think the source to other games is available

I'd be happy to share mine if I could ever get some feedback from the admins on what I need to do to get it publication-worthy. Sadly the admins/devs for the site are very busy and don't have a lot of time to spend on us studio devs.
Regarding your question... You could do it either way, depending on which feels easier for you to implement. You could have one PlayStone state that can transition to itself, and you keep track of whether it's the first or second stone in some way, or you could have PlayFirstStone and PlaySecondStone, and you'd probably want to put most of their functionality in shared functions.
Re: Source of games
Posted: 25 January 2015, 17:21
by morphles
Thanks for the info. Lets hope adminstration will get some time. And IMO sources should definetly be made accessible to other devs. As even TOS mentiones that source can be used in such way, so everyone has agreeded to that enyways.