Skip to content

Commit

Permalink
Run ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Mar 17, 2022
1 parent 1365ca9 commit d963554
Show file tree
Hide file tree
Showing 15 changed files with 4,830 additions and 4,266 deletions.
988 changes: 506 additions & 482 deletions src/ai.ml

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions src/ai.mli
@@ -1,15 +1,14 @@
open Types

(* * AI Difficulty Behavior Detailed Below:
* Insane -> Omniscient unit that will track and move towards nearest player
* controlled unit no matter where it is on the board
* Hard -> Can sense player units within four times its movement zone, and will
* move towards players that enter that zone and attack if possible
* Normal -> Can sense player units within two times its movement zone and will
* move towards players that enter that zone and attack if possible
* Easy -> Will never move but will attack if player enters attack range*)

* Insane -> Omniscient unit that will track and move towards nearest player
* controlled unit no matter where it is on the board
* Hard -> Can sense player units within four times its movement zone, and will
* move towards players that enter that zone and attack if possible
* Normal -> Can sense player units within two times its movement zone and will
* move towards players that enter that zone and attack if possible
* Easy -> Will never move but will attack if player enters attack range*)

(*[step] returns unit after all enemy characters have performed
* their desired actions*)
val step: character list -> character list -> map -> unit
* their desired actions*)
val step : character list -> character list -> map -> unit

0 comments on commit d963554

Please sign in to comment.