Skip to content

Finalise the Structure of Package #2

Description

@yashbonde

As first issue I wanted to raise a problem that I am facing on deciding the structure of the package. There are many possibilities of structures we can use for this project. Going over a few of them here:

  1. Complete re-writing in Cython: One option is to perform complete rewrite of original source code in Cython to give complete access to the game controls. Though this is not a bad idea and will [possibly] result in complete control of the game via python this is also a cumbersome process to do.

  2. Wrapper in Cython/pybind11: Another option is to only modify the source code so much that we have access to the client taps and have complete client side interface in python. This is doable and is one of the strong approaches.

  3. Writing socket Connection: This approach modifies the idea above by writing client side sockets in python and having all the required processing locally. This is the fastest the three but main issue while building this is the lack of proper documentation on the freeciv socket connections. For this particular approach I am taking inspiration from an already existing repo.

Till I get further response on this I am going to be developing on the lines of 3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions