Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some questions on dds #124

Open
S-N-O-R-L-A-X opened this issue Jun 2, 2023 · 2 comments
Open

Some questions on dds #124

S-N-O-R-L-A-X opened this issue Jun 2, 2023 · 2 comments

Comments

@S-N-O-R-L-A-X
Copy link

S-N-O-R-L-A-X commented Jun 2, 2023

First, I want to express my sincere appreciation on your work. The dds is really good. I want to use it in my own program, an online double dummy analyzer with calculation in client end. However, I am not familiar with C++. I have read the code, the docs for several days but I still did not even know how to use it. When I try running the cpp in example, it raised a lot of errors.

Uploading image.png…

But the cpps puzzled me and there is no main function in source code. Could you please give explanation on following questions:

  1. How can I use this program?
  2. How can I make this run without building it?
  3. Which file is the entrance file?
  4. Suppose I want to use web assembly to run this program, what should I do?
@S-N-O-R-L-A-X S-N-O-R-L-A-X changed the title Some question on dds Some questions on dds Jun 2, 2023
@zizhang-qiu
Copy link

Although I'm not the developer of this program, I can give you several advices.

  1. The authors want the program used as a library (.so or .dll). If you use C++, you should link to the library, using tools like gcc or cmake.
  2. If you don't want to build it, there are 2 ways. First, you can download the pre-built version on official website. Second, you can use Cmake to make it a library when compiling, take open_spiel as an example
    https://github.com/google-deepmind/open_spiel/blob/931e39a99ee73412500def0227925f8f19f033fe/open_spiel/games/CMakeLists.txt#L213
    Or, you can use python, there are several repos on github give examples, for example, redeal
  3. The main functions and structure are listed in "include/dll.h".
  4. I don't have experience with web assembly, but I think if you can solve questions above, this won't be hard.

@S-N-O-R-L-A-X
Copy link
Author

Although I'm not the developer of this program, I can give you several advices.

  1. The authors want the program used as a library (.so or .dll). If you use C++, you should link to the library, using tools like gcc or cmake.
  2. If you don't want to build it, there are 2 ways. First, you can download the pre-built version on official website. Second, you can use Cmake to make it a library when compiling, take open_spiel as an example
    https://github.com/google-deepmind/open_spiel/blob/931e39a99ee73412500def0227925f8f19f033fe/open_spiel/games/CMakeLists.txt#L213
    Or, you can use python, there are several repos on github give examples, for example, redeal
  3. The main functions and structure are listed in "include/dll.h".
  4. I don't have experience with web assembly, but I think if you can solve questions above, this won't be hard.

Thanks. I have used dds and built a website. However, the speed is slower than wasm I think. Maybe now what I only need is wasm for dds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants