13 lines
204 B
OCaml
13 lines
204 B
OCaml
|
|
||
|
type t = {
|
||
|
mutable name : string ;
|
||
|
mutable lifes : int ;
|
||
|
mutable position : Position.t;
|
||
|
}
|
||
|
|
||
|
let create () = {
|
||
|
name = "Unnamed player" ;
|
||
|
lifes = 3 ;
|
||
|
position = Position.zero ;
|
||
|
}
|