Skip to content

Developping a Prolog AI : Arimaa game - UTC - IA02 - Spring 2017

Notifications You must be signed in to change notification settings

leminhtr/ArimaaGame_PrologAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[Works only for Unix and Windows, not for Mac]

Prolog-Arimaa - Spring 2017 - IA02 Project

Tool to create Arimaa Prolog IA with JS game interface. Usage a Pengine to convert Prolog in JS.

Install SWI Prolog

  1. Download prolog from prolog
  2. Install it with default option

Install Arimaa game and start coding your IA

Get Arimaa game

  1. Download folder (zip file)
  2. Unzip it in your working folder

Run Arimaa game

  1. Enter in folder ArimaaIA02
  2. Execute run.pl (allow authorization if asked) The server is now running
  3. You can then access to the game in any browser via: http://localhost:3030 In the interface you play the gold (bottom) color and you IA is the silver color (top)

Code your IA

The ONLY file you have to touch to code your IA is ArimaaIA02\apps\arimaa\arimaa.pl

  1. Update ArimaaIA02\apps\arimaa\arimaa.pl
  2. Restart the server: Close the SWI-Prolog console and re-execute run.pl
  3. Refresh your browser page or click http://localhost:3030 Your new IA will be loaded (silver player)

Problem you may encounter with Unix

library uuid can't be loaded:

  1. Install the library OSSP UUID
  2. Recompile prolog (example under Arch Linux):
    • yaourt -Sy uuid
    • yaourt -D swi-prolog-devel (yes to remove prolog if conflict)

About

Developping a Prolog AI : Arimaa game - UTC - IA02 - Spring 2017

http://localhost:3030

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published