<p>I have coded an AI checkers game but would like to see how good it is. Some people have informed me to use the Chinook AI opensource code. But I am having trouble trying to integrate that software into my AI code. How do I integrate another game engine in checkers with the AI I have coded?</p>

CC BY-SA 4.0
2018-10-15T16:20:33.783Z
Please explain what is preventing you integrating Chinook - e.g. do you get errors, is there a clash of libraries or language support on your machine? Also, it is worth mentioning your project's coding language. Your own code and whatever you integrate with will need to share a game board and be able to inform each other of when they have moved/whether they resign etc.
Neil Slater
CC BY-SA 4.0
2018-10-15T16:32:35.720Z
I'm having trouble wrapping my head around how to integrate it into my code
JoeyB
CC BY-SA 4.0
2018-10-15T16:33:37.023Z
Is it just a matter of copying and pasting it?
JoeyB
CC BY-SA 4.0
2018-10-15T16:40:17.440Z
I suspect that is unlikely. Are the two projects written in the same language? Do they use the same board representation? Do you have a reference to the Chinook AI code and documentation for its API?
Neil Slater
CC BY-SA 4.0
2018-10-15T17:16:56.027Z
To put it simply. I have to say no to all of those questions. Can you help me?
JoeyB
CC BY-SA 4.0
2018-10-15T17:18:59.207Z
Is there a site whereby it offers a variety of languages for me to choose from so I can just download it?
JoeyB
CC BY-SA 4.0
2018-10-15T17:34:45.427Z
No I think it is very unlikely that you will find a conversion to your language if the original does not match. I don't think you have an AI problem here, but are limited by your knowledge/experience of working with third party code or systems. What language is your project in?
Neil Slater
CC BY-SA 4.0
2018-10-15T17:36:33.637Z
I coded it In C
JoeyB
CC BY-SA 4.0
2018-10-15T17:48:22.147Z
OK, so C doesn't come with much help, but it is fast and can connect low-level. Your ideal integration will be with another checkers library written in C, which has at least some documentation. A quick search turned up this: http://www.fierz.ch/checkerboard.php . . . which is a shared checkers "environment" that runs in Windows and that multiple different player engines can share. It may be your best bet - it is unlikely that anyone on AI site can answer questions about integrating it though.
Neil Slater
CC BY-SA 4.0
2018-10-15T17:54:31.690Z
Final thing that may help - **CheckerBoard** is written so that you can implement your AI as a Windows DLL and copy it into an Engines folder - i.e. all the integration work done for you, including a UI for human-vs-AI play, *provided* you follow the API that it expects of you in your DLL: http://www.fierz.ch/cbdeveloper.php
Neil Slater
CC BY-SA 4.0
2018-10-15T17:58:13.180Z
@NeilSlater  That is mighty helpful of you Neil, thank you
JoeyB
<game-ai><checkers>
Checkers AI game engines
JoeyB
# Checkers AI game engines

(Asked by: username_0 on 2018-10-15)

I have coded an AI checkers game but would like to see how good it is. Some people have informed me to use the Chinook AI opensource code. But I am having trouble trying to integrate that software into my AI code. How do I integrate another game engine in checkers with the AI I have coded?

**Tags:** game-ai, checkers

> **Comments:**
> **username_1**: Please explain what is preventing you integrating Chinook - e.g. do you get errors, is there a clash of libraries or language support on your machine? Also, it is worth mentioning your project's coding language. Your own code and whatever you integrate with will need to share a game board and be able to inform each other of when they have moved/whether they resign etc.  
> **username_0**: I'm having trouble wrapping my head around how to integrate it into my code  
> **username_0**: Is it just a matter of copying and pasting it?  
> **username_1**: I suspect that is unlikely. Are the two projects written in the same language? Do they use the same board representation? Do you have a reference to the Chinook AI code and documentation for its API?  
> **username_0**: To put it simply. I have to say no to all of those questions. Can you help me?  
> **username_0**: Is there a site whereby it offers a variety of languages for me to choose from so I can just download it?  
> **username_1**: No I think it is very unlikely that you will find a conversion to your language if the original does not match. I don't think you have an AI problem here, but are limited by your knowledge/experience of working with third party code or systems. What language is your project in?  
> **username_0**: I coded it In C  
> **username_1**: OK, so C doesn't come with much help, but it is fast and can connect low-level. Your ideal integration will be with another checkers library written in C, which has at least some documentation. A quick search turned up this: http://www.fierz.ch/checkerboard.php . . . which is a shared checkers "environment" that runs in Windows and that multiple different player engines can share. It may be your best bet - it is unlikely that anyone on AI site can answer questions about integrating it though.  
> **username_1**: Final thing that may help - **CheckerBoard** is written so that you can implement your AI as a Windows DLL and copy it into an Engines folder - i.e. all the integration work done for you, including a UI for human-vs-AI play, *provided* you follow the API that it expects of you in your DLL: http://www.fierz.ch/cbdeveloper.php  
> **username_0**: @NeilSlater  That is mighty helpful of you Neil, thank you  

---

## 0 answers

