justnukeit/Player.ml

12 lines
211 B
OCaml

type player_t = {
mutable name : string ;
mutable lifes : int ;
mutable position : Position.t;
}
let create () = {
name = "Unnamed player" ;
lifes = 3 ;
position = Position.zero ;
}