Skip to content
/ lurgi-ai Public

Implementation of Infection/Ataxx with hooks for experimenting with min-maxing AI.

Notifications You must be signed in to change notification settings

hyphz/lurgi-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lurgi-ai

Implementation of Infection/Ataxx with hooks for experimenting with min-maxing AI.

This is a JavaFX-based version of the classic Infection game. It's playable in itself, but it was written for use on a course on writing AI for games, so it's intended to be as easy as possible to extend with new AIs. This game was chosen as a case study because of the famous case of The 7th Guest, in which an AI was written for this game which was extremely strong but no fun at all to play against; the idea was to give an appreciation of the tradeoff between these two.

To write a new AI, simply write a new class that implements AI, put it in the ai package, and add its name to the list in Frontend.Main. Done. AI has only one method, nextMove, in which your AI should work out its next move and return it as a Move object.

If you want to use a standard min-maxing strategy, you can instead extend MinMaxingAI, in which case you only need to do two things: call super in your constructor to set the search depth, and implement the heuristic method to score a board, returning a value between 0 and 9999.

About

Implementation of Infection/Ataxx with hooks for experimenting with min-maxing AI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages