This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* A Simple Abstract Shmup Game | |
Copyright (C) 2019 Florent Monnier | |
This software is provided "AS-IS", without any express or implied warranty. | |
In no event will the authors be held liable for any damages arising from | |
the use of this software. | |
Permission is granted to anyone to use this software and associated elements | |
for any purpose, including commercial applications, and to alter it and | |
redistribute it freely. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* ========================================================================== * | |
* General implementation of A-star algorithm | |
* ========================================================================== *) | |
module Astar : | |
sig | |
type 'a t = | |
{ | |
cost : 'a -> 'a -> int; | |
goal : 'a; |