Page 1 of 1
Tutorial: Reversi not fully implemented?
Posted: 05 May 2020, 02:57
by ryschwith
So I've been going through the reversi tutorial, and it kind of just stops at some point. Tutorial's not completed yet, that's fine. So I figured I'd open up the reversi code that gets added automatically to the SFTP folder to see if I can spot the differences... and there don't really seem to be any. Well, there are a few: it can actually end the game and it has the function to update game progress. But there doesn't appear to be anything to bridge that and where I've landed at the end of the tutorial.
Having reached, the end of the tutorial, I have a game where two players can log in and add discs to the board, and it'll flip them as expected, calculate the score, and send out all of the appropriate notifications. However, it doesn't update to the next player until I manually refresh. Is that expected by the end of tutorial as it exists today? If so, has that also not been implemented in the full reversi code or am I missing something?
Re: Tutorial: Reversi not fully implemented?
Posted: 05 May 2020, 16:39
by LaszloK
I haven't checked out the Reversi tutorial yet, but what I can attest is that the Hearts tutorial is incomplete (and different from the actual Hearts implementation running on the mainsite). For example, the tutorial version doesn't have code in place to always put the current player (if the viewer is one of the players) on the south edge of the table. My hunch would be that the Reversi tutorial might just as well be a little rough around the edges here and there

Re: Tutorial: Reversi not fully implemented?
Posted: 05 May 2020, 23:28
by Loreroth
The tutorials tend to cover the main points but gloss over some details here and there. Consider it a good practice experience to compare what you've written with the fully implemented versions that came in your directory to fill in the blanks.
The tutorials are more a guide than a fully detailed write up. Some parts of the tutorials were written quite a while ago as well. Looking at the edit history, the hearts tutorial is probably the most recent overall.
Re: Tutorial: Reversi not fully implemented?
Posted: 06 May 2020, 01:44
by Victoria_La
Yes tutorials are incomplete but it should be more less working version. Is something clearly does not work properly it may need update as some stuff change in last 10 years... Or its possible you made a mistake following steps and its your own bug... If page does not refresh means it missing notification handler, it sometimes easy to miss because its by function name and if you misspell it slightly it won't work
It is also a wiki page and you can edit it if you find mistakes...
Re: Tutorial: Reversi not fully implemented?
Posted: 06 May 2020, 03:14
by Loreroth
Victoria_La wrote: ↑06 May 2020, 01:44
It is also a wiki page and you can edit it if you find mistakes...
Im still in the process of learning everything

. Something I can look into once i'm more confident in being able to provide a good quality addition.