Multiplayer Tic-tac-toe [C2][Web2py(Python)][AJAX][Cross-domain]



Attached Files

The following files have been attached to this tutorial:



Download now 7.75 MB

Download now 4.42 KB


5,055 visits, 10,738 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Other notes

C2 HTML5 games can be deployed on web2py directly, but as it has a view-model-controller architecture, the manifest files and other stuff have to be moved around and edited a bit, but it can be done.

May this tutorial be as a proof of concept and a starting guide for those aiming to create their own servers for turn-based games.

For a game of tic-tac-toe the new multiplayer functions of C2 would do fine enough, as the communication is only between 2 players and there's no important information.

For FPS games I suppose it's possible to use WebRPC for movement/chat information handling and ajax calls for transmitting sensitive data, where only the server can decide the output. But I'm no expert on that subject, so I'll leave this for the future.

Thanks for reading, hope you gained something out of this.



Download now 7.75 MB

Download now 4.42 KB

  • Order by
Want to leave a comment? Login or Register an account!